changeset 9:6db58d31dd4c

Function for loading initial state.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sun, 22 Aug 2010 15:59:37 +0200
parents fadfd4479e24
children 72b619d01f4d
files gamelib/state.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/state.py	Sun Aug 22 15:50:49 2010 +0200
+++ b/gamelib/state.py	Sun Aug 22 15:59:37 2010 +0200
@@ -1,5 +1,12 @@
 """Utilities and base classes for dealing with scenes."""
 
+def initial_state():
+    """Load the initial state."""
+    state = State()
+    # TODO: populate state
+    return state
+
+
 class State(object):
     """Complete game state.