Mercurial > boomslang
changeset 569:0587f11ff435 pyntnclick
Link up Resource module.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 15:40:40 +0200 |
parents | aae75f7ce7a1 |
children | 9c3528c2cbe5 |
files | pyntnclick/main.py |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pyntnclick/main.py Sat Feb 11 15:37:43 2012 +0200 +++ b/pyntnclick/main.py Sat Feb 11 15:40:40 2012 +0200 @@ -21,6 +21,7 @@ from pyntnclick.endscreen import EndScreen from pyntnclick.constants import ( SCREEN, FRAME_RATE, DEBUG) +from pyntnclick.resources import Resources from pyntnclick.sound import Sound from pyntnclick import state, data @@ -47,6 +48,9 @@ # list of game scenes SCENE_LIST = None + # resource module + RESOURCE_MODULE = "Resources" + def __init__(self): if self.INITIAL_SCENE is None: raise GameDescriptionError("A game must have an initial scene.") @@ -55,9 +59,9 @@ " of scenes.") self._initial_scene = self.INITIAL_SCENE self._scene_list = self.SCENE_LIST + self._resource_module = self.RESOURCE_MODULE self._debug_rects = False - # TODO: make these real objects - self.resource = object() + self.resource = Resources(self._resource_module) self.sound = Sound(self.resource) def initial_state(self):