# HG changeset patch # User Simon Cross # Date 1282489474 -7200 # Node ID c9b124c2f5c63bed751edbc4517eee489d574662 # Parent 55f1969e41c979740975a2863c2ee7003ad785ae Start of scene drawing framework. diff -r 55f1969e41c9 -r c9b124c2f5c6 gamelib/state.py --- 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."""