Ignore:
Timestamp:
09/06/13 10:59:51 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Resume from the previous level

Location:
nagslang/screens
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r340 r342  
    172172                self._disable_render = True
    173173                self.world.rooms += 1
     174                self.world.level = ev.destination
    174175                ScreenChange.post(ev.destination)
    175176                return
  • nagslang/screens/menu.py

    r325 r342  
    55from nagslang.screens.base import Screen
    66from nagslang.events import QuitEvent, ScreenChange
    7 from nagslang.level import Level
    87from nagslang.widgets.text import TextWidget, MultiLineWidget
    98
     
    4847
    4948    def play(self):
    50         first_level = Level.list_levels()[0]
    51         ScreenChange.post(first_level)
     49        ScreenChange.post(self.world.level)
    5250
    5351    def restart(self):
Note: See TracChangeset for help on using the changeset viewer.