Changeset 510:2cdfbc483d57


Ignore:
Timestamp:
Sep 7, 2013, 5:22:15 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
37cfad7d1ff08f7f7ff077423e7d0d7d43a9d873
Message:

Don't put the starting level in the world, it just creates too much pain

Location:
nagslang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r488 r510  
    390390    def _post_door_event(self, protagonist):
    391391        world = protagonist.world
    392         DoorEvent.post(world.level[0], world.level[1])
     392        if world.level[0]:
     393            DoorEvent.post(world.level[0], world.level[1])
     394        else:
     395            # New game?
     396            super(ContinueGameDoor, self)._post_door_event(protagonist)
    393397
    394398
  • nagslang/world.py

    r505 r510  
    2727            'kills': 0,
    2828            'rooms': 0,
    29             'level': Level.game_starting_point(),
     29            'level': (None, (None, None)),
    3030            'level_state': {},
    3131            'inventory': set(),
Note: See TracChangeset for help on using the changeset viewer.