Ignore:
Timestamp:
09/07/13 12:26:28 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Replace menu and death screen with the starting level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r429 r437  
    371371
    372372
     373class RestartGameDoor(Door):
     374    def _post_door_event(self, protagonist):
     375        protagonist.world.reset()
     376        super(RestartGameDoor, self)._post_door_event(protagonist)
     377
     378
     379class ContinueGameDoor(Door):
     380    def _post_door_event(self, protagonist):
     381        world = protagonist.world
     382        DoorEvent.post(world.level[0], world.level[1])
     383
     384
    373385class PuzzleDoor(BaseDoor):
    374386    def __init__(self, space, position, destination, dest_pos, angle,
Note: See TracChangeset for help on using the changeset viewer.