teststrecke-game/sprites/spritesheet_road/make_tilemap.sh
2024-11-03 19:16:30 +01:00

9 lines
1 KiB
Bash

#!/bin/sh
mkdir tmp
for i in {0..32}; do magick road_1x1.xcf["${i}"] "tmp/road1x1_${i}.png"; done
for i in {0..32}; do magick road_2x2.xcf["${i}"] "tmp/road2x2_${i}.png"; done
for i in {0..32}; do magick markings_1x1.xcf["${i}"] "tmp/markings1x1_${i}.png"; done
magick convert tmp/road1x1_{0..7}.png +append \( tmp/road1x1_{8..15}.png +append \) -append \( tmp/road1x1_{16..23}.png +append \) -append \( tmp/road1x1_{24..31}.png +append \) -append spritesheet_road1x1.png
#magick convert erstereihe +append \( zweite reihe +append \) -append \( drittereihe +append \) -append out.png
magick convert tmp/road2x2_{0..3}.png +append \( tmp/road2x2_{4..7}.png +append \) -append \( tmp/road2x2_{8..11}.png +append \) -append \( tmp/road2x2_{12..15}.png +append \) -append spritesheet_road2x2.png
magick convert tmp/markings1x1_{0..7}.png +append \( tmp/markings1x1_{8..15}.png +append \) -append \( tmp/markings1x1_{16..23}.png +append \) -append \( tmp/markings1x1_{24..31}.png +append \) -append spritesheet_markings1x1.png