From 7ba98383908eb9546ee78a14dad90057dc65757b Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 13 May 2014 11:48:51 +0200 Subject: [PATCH] center robot again --- naja/widgets/robot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/naja/widgets/robot.py b/naja/widgets/robot.py index 4506edf..b6e219b 100644 --- a/naja/widgets/robot.py +++ b/naja/widgets/robot.py @@ -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,)) -- 2.34.1