else:
bg = resources.get_image('board/tile_1.png',
transforms=(EIGHT_BIT,))
+ overlay = None
if self.highlighted:
- bg = resources.get_image('board/tile_selected.png',
- transforms=(EIGHT_BIT,))
+ overlay = resources.get_image('board/tile_selected.png',
+ transforms=(EIGHT_BIT,))
self.surface = pygame.surface.Surface(TILE_SIZE)
self.surface.blit(bg, (0, 0))
+ if overlay is not None:
+ self.surface.blit(overlay, (0, 0))
# Look up the required bits on the board location
card = self.state.board_locations[self.board_pos]
player_pos = self.state.player.position