Changeset 130:75938c6ac3d0


Ignore:
Timestamp:
Apr 4, 2011, 10:26:28 PM (9 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
rebase_source:
d82c8748b5563436c6ea8a08ef917bd5bd80fcdc
Message:

Alternate tile shapes with embellishments; applied to red and blue; composer can generate only some sets

Files:
1 added
21 edited

Legend:

Unmodified
Added
Removed
  • scripts/tileset-composer.sh

    r107 r130  
    11#!/bin/bash
    22
    3 for background in "fan_gold" "fan_green" "red" "blue" "flower_dark" "flower_light"
    4 do
     3xcffile=$1
     4shift
     5
     6function make_tiles(){
     7    local background=$1
    58    mkdir -p $background
    69    for piece in "floor" "wall" "wall-end-"{"t","b",""}{"l","r"} "floor-"{"start","end"}"-"{"l","r"} "arch-"{"l","r"} "decor-1"
    710    do
    8         xcf2png $1 "$piece" "$background" --mode Screen > $background/"$piece.png"
     11        xcf2png $xcffile "$piece" "$background" --mode Screen > $background/"$piece.png"
    912    done
    10 done
     13}
     14
     15if [ $# -gt 0 ]
     16then
     17    for background in $*
     18    do
     19        make_tiles $background
     20    done
     21else
     22    for background in "fan_gold" "fan_green" "red" "blue" "flower_dark" "flower_light"
     23    do
     24        make_tiles $background
     25    done
     26fi
     27
     28
Note: See TracChangeset for help on using the changeset viewer.