center robot again
authorNeil <neil@dip.sun.ac.za>
Tue, 13 May 2014 09:48:51 +0000 (11:48 +0200)
committerNeil <neil@dip.sun.ac.za>
Tue, 13 May 2014 09:48:51 +0000 (11:48 +0200)
naja/widgets/robot.py

index 4506edf6e1e91d66dc89ee1091b83bcbe92c81db..b6e219bd0305a68a090f149b5b6301178aa95da5 100644 (file)
@@ -18,14 +18,14 @@ IMG_MAP = {
 class RobotWidget(Widget):
     """Widget which holds a tile on the game board."""
     def __init__(self, state):
-        pos = (state.player.position[0] * TILE_SIZE[0] + 32,
+        pos = (state.player.position[0] * TILE_SIZE[0],
                state.player.position[1] * TILE_SIZE[1] + BIT_SIZE[1])
         super(RobotWidget, self).__init__(pos, PLAYER_SIZE)
         self.state = state
 
     def prepare(self):
         # Look up the required bits on the board location
-        self.pos = (self.state.player.position[0] * TILE_SIZE[0] + 32,
+        self.pos = (self.state.player.position[0] * TILE_SIZE[0],
                     self.state.player.position[1] * TILE_SIZE[1] + BIT_SIZE[1])
         self.surface = resources.get_image('board/robot.png',
                                            transforms=(EIGHT_BIT,))