changeset 11:1cd05cfec375

Add start of screen / level / area object.
author Simon Cross <hodgestar@gmail.com>
date Sun, 01 Sep 2013 14:04:01 +0200
parents f7a0d6fd9f00
children 2318792b83c6
files nagslang/area.py
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nagslang/area.py	Sun Sep 01 14:04:01 2013 +0200
@@ -0,0 +1,16 @@
+"""A screen or area in which action happens."""
+
+import pymunk
+
+
+class Area(object):
+
+    def __init__(self):
+        self.space = pymunk.Space()
+
+    def render(self, surface):
+        pass
+
+    def tick(self, step):
+        """Step the given amount of time."""
+        self.space.step(step)