Changeset 341:9a0f0ea687da


Ignore:
Timestamp:
04/09/11 10:56:52 (12 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Phase:
public
Rebase:
34666661656433303638386232343030353537383033373261313063333135646665623237616439
Message:

removed per-set decor tiles; created common set of decorative tiles; added some bamboo to road

Files:
1 added
7 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • data/levels/road.json

    r334 r341  
    88        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    99        "X{......................................}XXd{....}bXXXXXXXXXXXXXXd{......}X",
    10         "X.....pXXXq.?..pXXXXXXXXXXXXXXq..?......pXd{........}bXXXXXXXXXXd{........X",
    11         "X...(Xd{}bXXXXXXd{.........}bXXXXXXq.?..XX{............}XXXXXXX{..........X",
     10        "X.....pXXXq.?..pXXXXXXXXXXXXXXq..?..|...pXd{........}bXXXXXXXXXXd{........X",
     11        "X|..(Xd{}bXXXXXXd{.........}bXXXXXXq.?..XX{............}XXXXXXX{..........X",
    1212        "X)........}bXd{...................}bXXq.Xd..............bXXXXXd.........?.X",
    1313        "X{................(XXXXXq............}XXX{................}XXX{.......pXXXX",
    14         "XXXXq.................}bXXXq..........XXd......pq..........XXd......pXXXXXX",
     14        "XXXXq...............|.}bXXXq..........XXd|.....pq..........XXd|.....pXXXXXX",
    1515        "XXXXXXq..?....pXXXX).....}bXXq........bd{....pXXXXq........bd{....pXXXXXXXX",
    1616        "XXXXXXXXXXXXXXXX{?...?.....}XXXq...........pXXXXXXXXq...........pXXXXXXXXXX",
  • scripts/tileset-composer.sh

    r130 r341  
    77    local background=$1
    88    mkdir -p $background
    9     for piece in "floor" "wall" "wall-end-"{"t","b",""}{"l","r"} "floor-"{"start","end"}"-"{"l","r"} "arch-"{"l","r"} "decor-1"
     9    for piece in "floor" "wall" "wall-end-"{"t","b",""}{"l","r"} "floor-"{"start","end"}"-"{"l","r"} "arch-"{"l","r"}
    1010    do
    1111        xcf2png $xcffile "$piece" "$background" --mode Screen > $background/"$piece.png"
  • skaapsteker/level.py

    r282 r341  
    1313class TileSet(object):
    1414    def __init__(self, dirname):
    15         self.dirname = 'tiles/' + dirname
     15        self.dirname = dirname
    1616        self.tile_factories = {
    1717            '.': lambda pos: None,
     
    3131            '{': self.tile_factory('arch-l.png'),
    3232            '}': self.tile_factory('arch-r.png'),
    33             '1': self.tile_factory('decor-1.png', layer=Layers.FOREGROUND),
     33            '|': self.tile_factory('bamboo.png', layer=Layers.BACKGROUND, dirname='common'),
    3434            }
    3535
     
    3939
    4040
    41     def tile_factory(self, image_name, floor=False, block=False, layer=Layers.BACKGROUND):
    42         image = data.load_image(self.dirname + '/' + image_name)
     41    def tile_factory(self, image_name, floor=False, block=False, layer=Layers.BACKGROUND, dirname=None):
     42        if not dirname:
     43            dirname = self.dirname
     44        image = data.load_image('tiles/' + dirname + '/' + image_name)
    4345        def _tilefac(pos):
    4446            tile = Geography(pos, image)
Note: See TracChangeset for help on using the changeset viewer.