Mercurial > pyntnclick
diff gamelib/state.py @ 18:c9b124c2f5c6
Start of scene drawing framework.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 17:04:34 +0200 |
parents | e9dc681911c4 |
children | 8e709824306d |
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."""