From: Neil Date: Tue, 13 May 2014 09:48:51 +0000 (+0200) Subject: center robot again X-Git-Tag: 0.1~346 X-Git-Url: https://git.ctpug.org.za/?p=naja.git;a=commitdiff_plain;h=7ba98383908eb9546ee78a14dad90057dc65757b center robot again --- 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,))