diff nagslang/screens/area.py @ 37:4140780c21bc

Give screens a name and a world.
author Simon Cross <hodgestar@gmail.com>
date Sun, 01 Sep 2013 17:06:06 +0200
parents 457280af5f3a
children 82036437ebf6
line wrap: on
line diff
--- a/nagslang/screens/area.py	Sun Sep 01 17:01:25 2013 +0200
+++ b/nagslang/screens/area.py	Sun Sep 01 17:06:06 2013 +0200
@@ -27,12 +27,12 @@
 
 class AreaScreen(Screen):
 
-    def setup(self, world):
+    def setup(self):
         self.keys = ControlKeys()
-        self.add_walls(world)
-        self.add_protagonist(world)
+        self.add_walls()
+        self.add_protagonist()
 
-    def add_walls(self, world):
+    def add_walls(self):
         self.walls = []
         body = pymunk.Body()
         body.position = (400, 300)
@@ -43,7 +43,7 @@
             corner = next_corner
         self.space.add(*self.walls)
 
-    def add_protagonist(self, world):
+    def add_protagonist(self):
         self.protagonist_body = pymunk.Body(100, 1000)
         self.protagonist_body.position = (400, 300)
         self.protagonist_body.velocity_limit = 5000