changeset 130:75938c6ac3d0

Alternate tile shapes with embellishments; applied to red and blue; composer can generate only some sets
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Tue, 05 Apr 2011 00:26:28 +0200
parents 8a8c00a643fa
children 85e2fa1f77c2
files data/source/tileset-layers-curly.xcf data/tiles/blue/arch-l.png data/tiles/blue/arch-r.png data/tiles/blue/floor-start-l.png data/tiles/blue/floor-start-r.png data/tiles/blue/wall-end-bl.png data/tiles/blue/wall-end-br.png data/tiles/blue/wall-end-l.png data/tiles/blue/wall-end-r.png data/tiles/blue/wall-end-tl.png data/tiles/blue/wall-end-tr.png data/tiles/red/arch-l.png data/tiles/red/arch-r.png data/tiles/red/floor-start-l.png data/tiles/red/floor-start-r.png data/tiles/red/wall-end-bl.png data/tiles/red/wall-end-br.png data/tiles/red/wall-end-l.png data/tiles/red/wall-end-r.png data/tiles/red/wall-end-tl.png data/tiles/red/wall-end-tr.png scripts/tileset-composer.sh
diffstat 22 files changed, 22 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
Binary file data/source/tileset-layers-curly.xcf has changed
Binary file data/tiles/blue/arch-l.png has changed
Binary file data/tiles/blue/arch-r.png has changed
Binary file data/tiles/blue/floor-start-l.png has changed
Binary file data/tiles/blue/floor-start-r.png has changed
Binary file data/tiles/blue/wall-end-bl.png has changed
Binary file data/tiles/blue/wall-end-br.png has changed
Binary file data/tiles/blue/wall-end-l.png has changed
Binary file data/tiles/blue/wall-end-r.png has changed
Binary file data/tiles/blue/wall-end-tl.png has changed
Binary file data/tiles/blue/wall-end-tr.png has changed
Binary file data/tiles/red/arch-l.png has changed
Binary file data/tiles/red/arch-r.png has changed
Binary file data/tiles/red/floor-start-l.png has changed
Binary file data/tiles/red/floor-start-r.png has changed
Binary file data/tiles/red/wall-end-bl.png has changed
Binary file data/tiles/red/wall-end-br.png has changed
Binary file data/tiles/red/wall-end-l.png has changed
Binary file data/tiles/red/wall-end-r.png has changed
Binary file data/tiles/red/wall-end-tl.png has changed
Binary file data/tiles/red/wall-end-tr.png has changed
--- a/scripts/tileset-composer.sh	Tue Apr 05 00:15:15 2011 +0200
+++ b/scripts/tileset-composer.sh	Tue Apr 05 00:26:28 2011 +0200
@@ -1,10 +1,28 @@
 #!/bin/bash
 
-for background in "fan_gold" "fan_green" "red" "blue" "flower_dark" "flower_light"
-do
+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 $1 "$piece" "$background" --mode Screen > $background/"$piece.png"
+        xcf2png $xcffile "$piece" "$background" --mode Screen > $background/"$piece.png"
     done
-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
+
+