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,))