teststrecke-game/sprites/background/make_tilemap.sh
2024-11-06 19:46:47 +01:00

8 lines
No EOL
720 B
Bash

#!/bin/sh
mkdir tmp
touch tmp/.gdignore
for i in {0..32}; do magick bg.xcf["${i}"] "tmp/bg_${i}.png"; done
for i in {0..32}; do magick scenery.xcf["${i}"] "tmp/scenery_${i}.png"; done
magick convert tmp/bg_{0..7}.png +append \( tmp/bg_{8..15}.png +append \) -append \( tmp/bg_{16..23}.png +append \) -append \( tmp/bg_{24..31}.png +append \) -append spritesheet_bg.png
#magick convert erstereihe +append \( zweite reihe +append \) -append \( drittereihe +append \) -append out.png
magick convert tmp/scenery_{0..7}.png +append \( tmp/scenery_{8..15}.png +append \) -append \( tmp/scenery_{16..23}.png +append \) -append \( tmp/scenery_{24..31}.png +append \) -append spritesheet_scenery.png