Changeset 218:7ee5bd883d62


Ignore:
Timestamp:
04/06/11 23:02:36 (12 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Phase:
public
Rebase:
63663434333863356338373438303432306532613035343934346531643633623038343866663430
Message:

renamed first proper level

Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • data/levels/temple.json

    r194 r218  
    11{
     2    "description": "A small temple",
    23    "backgrounds": [
    34        "background_01_back.png"
  • skaapsteker/menuscene.py

    r170 r218  
    1313        self.cur_game = cur_game
    1414        menu_options = [
    15             ('Level 1', 'level1'),
     15            ('Temple', 'temple'),
    1616            ('Level 2', 'level2'),
    1717            ('Level 3', 'level3'),
     
    2929    def selected(self, option, data):
    3030        "Callback from menu TextChoice"
    31         if data.startswith('level'):
    32             ChangeScene.post(LevelScene(self.game_state, data))
    33         elif data == 'resume':
     31        if data == 'resume':
    3432            ChangeScene.post(self.cur_game)
    3533        elif data == 'cutscene':
     
    3735        elif data == 'quit':
    3836            pygame.event.post(pygame.event.Event(QUIT))
     37        else:
     38            ChangeScene.post(LevelScene(self.game_state, data))
    3939
    4040    def draw(self, surface, engine):
Note: See TracChangeset for help on using the changeset viewer.