Pass positions to the widgets
authorNeil <neil@dip.sun.ac.za>
Sun, 11 May 2014 17:03:02 +0000 (19:03 +0200)
committerNeil <neil@dip.sun.ac.za>
Sun, 11 May 2014 17:03:14 +0000 (19:03 +0200)
naja/scenes/game.py

index b96120bd7690e307504895127c07d6423f588941..48625007fb34934711ce4cd497567987f8c383fe 100644 (file)
@@ -22,10 +22,10 @@ class GameScene(Scene):
 
     def __init__(self):
         super(GameScene, self).__init__()
-        self.widgets.append(PlayerBitsWidget())
-        self.widgets.append(BoardWidget())
-        self.widgets.append(GameBitsWidget())
-        self.widgets.append(InfoAreaWidget())
+        self.widgets.append(PlayerBitsWidget((0, 0)))
+        self.widgets.append(BoardWidget((0, 60)))
+        self.widgets.append(GameBitsWidget((0, 540)))
+        self.widgets.append(InfoAreaWidget((480, 0)))
 
     def handle_event(self, ev):
         if ev.type == pgl.KEYUP and ev.key in (pgl.K_q, pgl.K_ESCAPE):