Changeset 119:0f24800e9ca8


Ignore:
Timestamp:
Apr 4, 2011, 8:07:01 PM (9 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Display level3 and 4 on main menu

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • data/levels/level3.json

    r107 r119  
    77    "tiles": [
    88        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    9         "X{..}bd{............}bd{......................}bXd{.......}XX{.}XX{.....}X",
     9        "X{?.}bd{............}bd{......................}bXd{.......}XX{.}XX{.....}X",
    1010        "X.......<-+bXXXXXXq......pXXXd=+bXXXXd=->......}X{.........bXXXXXd.......X",
    1111        "X...............}bXXXXXXXXd{....................X........................X",
     
    1919    "enemies": [],
    2020    "sprites": [],
    21     "player": {}
     21    "player": {"pos": [2, 1], "direction": "right"}
    2222}
  • skaapsteker/level.py

    r118 r119  
    149149        objects += self.level_data.get('enemies', [])
    150150        objects += self.level_data.get('sprites', [])
    151         if 'player' in self.level_data:
     151        if 'pos' in self.level_data['player']:
    152152            objects.append(self.level_data['player'])
    153153
  • skaapsteker/menuscene.py

    r110 r119  
    1414            ('Level 1', 'level1'),
    1515            ('Level 2', 'level2'),
     16            ('Level 3', 'level3'),
     17            ('Level 4', 'level4'),
    1618            ('Quit', 'quit'),
    1719        ]
Note: See TracChangeset for help on using the changeset viewer.