changeset 18:c9b124c2f5c6

Start of scene drawing framework.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sun, 22 Aug 2010 17:04:34 +0200
parents 55f1969e41c9
children 87f8a46b88af
files gamelib/state.py
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/state.py	Sun Aug 22 16:50:25 2010 +0200
+++ b/gamelib/state.py	Sun Aug 22 17:04:34 2010 +0200
@@ -1,5 +1,7 @@
 """Utilities and base classes for dealing with scenes."""
 
+from albow.resource import get_image, get_sound
+
 
 def initial_state():
     """Load the initial state."""
@@ -30,6 +32,16 @@
     def __init__(self):
         pass
 
+    def draw_background(self, screen):
+        pass
+
+    def draw_sprites(self, screen):
+        pass
+
+    def draw(self, screen):
+        self.draw_background(screen)
+        self.draw_sprites(screen)
+
 
 class Item(object):
     """Base class for items."""