#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
export PATH="/Applications/Aseprite.app/Contents/MacOS:/Applications/Tiled.app/Contents/MacOS:${PATH}"
cd "$ROOT"
mkdir -p public/assets/{tilesets,sprites,maps} mapsrc
aseprite -b -script scripts/generate_tileset.lua
aseprite -b -script scripts/generate_sprites.lua
echo "Aseprite assets done."
