diff pyntnclick/main.py @ 560:28f03563f4db pyntnclick

Provide stubby access to sound and resource object from GameDescription on state and scene objects.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 11 Feb 2012 14:47:44 +0200
parents a4f28da12720
children 2f7aa3cad77c
line wrap: on
line diff
--- a/pyntnclick/main.py	Sat Feb 11 14:42:24 2012 +0200
+++ b/pyntnclick/main.py	Sat Feb 11 14:47:44 2012 +0200
@@ -56,10 +56,13 @@
         self._initial_scene = self.INITIAL_SCENE
         self._scene_list = self.SCENE_LIST
         self._debug_rects = False
+        # TODO: make these real objects
+        self.sound = object()
+        self.resource = object()
 
     def initial_state(self):
         """Create a copy of the initial game state."""
-        initial_state = state.GameState()
+        initial_state = state.GameState(self)
         initial_state.set_debug_rects(self._debug_rects)
         for scene in self._scene_list:
             initial_state.load_scenes(scene)