Mercurial > boomslang
comparison pyntnclick/main.py @ 603:3ce19d33b51f pyntnclick
Rename state to game to not cause confusion with the other state
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 11 Feb 2012 20:09:47 +0200 |
parents | fabce47e542f |
children | a25cd1c6335a |
comparison
equal
deleted
inserted
replaced
602:1aac5a3b17e1 | 603:3ce19d33b51f |
---|---|
64 self.constants = self.game_constants() | 64 self.constants = self.game_constants() |
65 self.debug_options = [] | 65 self.debug_options = [] |
66 | 66 |
67 def initial_state(self): | 67 def initial_state(self): |
68 """Create a copy of the initial game state.""" | 68 """Create a copy of the initial game state.""" |
69 initial_state = state.GameState(self) | 69 initial_state = state.Game(self) |
70 initial_state.set_debug_rects(self._debug_rects) | 70 initial_state.set_debug_rects(self._debug_rects) |
71 for scene in self._scene_list: | 71 for scene in self._scene_list: |
72 initial_state.load_scenes(scene) | 72 initial_state.load_scenes(scene) |
73 initial_state.set_current_scene(self._initial_scene) | 73 initial_state.set_current_scene(self._initial_scene) |
74 initial_state.set_do_enter_leave() | 74 initial_state.set_do_enter_leave() |