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/screens/menu.py

    r238 r252  
    1515        self.cursor_pos = 0
    1616        self.options = [
    17             self.new_game,
    18             self.load_game,
     17            self.play,
     18            self.restart,
    1919            self.quit,
    2020        ]
    2121        self.widgets = [
    2222            TextWidget((10, 10), 'Menu', fontsize=20),
    23             TextWidget((40, 50), 'Start new game'),
    24             TextWidget((40, 70), 'Restore saved game'),
     23            TextWidget((40, 50), 'Play the game'),
     24            TextWidget((40, 70), 'Start the game from the beginning again'),
    2525            TextWidget((40, 90), 'Quit'),
    2626            MultiLineWidget((60, 120), self.world.get_formatted_stats()),
     
    4646            widget.draw(surface)
    4747
    48     def new_game(self):
     48    def play(self):
    4949        ScreenChange.post('level1', None)
    5050
    51     def load_game(self):
    52         raise NotImplementedError()
     51    def restart(self):
     52        self.world.reset()
     53        self.setup()
    5354
    5455    def quit(self):
Note: See TracChangeset for help on using the changeset viewer.