Ignore:
Timestamp:
09/04/13 21:53:34 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
36383961343138333732653933646262636662333834643332386632666339643938636561623063
Message:

Save game state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/engine.py

    r238 r252  
    2424            'level2': AreaScreen,
    2525        }
     26        self._world.load()
    2627        self.change_screen('menu', None)
    2728        # Dummy resize event, to force us to realise our real size
     
    4849                    self._surface = pygame.display.get_surface()
    4950                elif ScreenChange.matches(ev):
     51                    self._world.save()
    5052                    self._surface.fill(pygame.color.Color(0, 0, 0))
    5153                    self.change_screen(ev.screen, ev.player)
Note: See TracChangeset for help on using the changeset viewer.