Mercurial > skaapsteker
view scripts/tileset-composer.sh @ 163:98ff05be85e0
Better Item placement.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Wed, 06 Apr 2011 00:02:41 +0200 |
parents | 75938c6ac3d0 |
children | 9a0f0ea687da |
line wrap: on
line source
#!/bin/bash xcffile=$1 shift function make_tiles(){ local background=$1 mkdir -p $background for piece in "floor" "wall" "wall-end-"{"t","b",""}{"l","r"} "floor-"{"start","end"}"-"{"l","r"} "arch-"{"l","r"} "decor-1" do xcf2png $xcffile "$piece" "$background" --mode Screen > $background/"$piece.png" done } if [ $# -gt 0 ] then for background in $* do make_tiles $background done else for background in "fan_gold" "fan_green" "red" "blue" "flower_dark" "flower_light" do make_tiles $background done fi