# Draw background
x, y = abs(self.board_pos[0] - 2), abs(self.board_pos[1] - 2)
+ if self.state.gameboard.puzzle:
+ tile_1_name = 'board/tile_1.png'
+ tile_2_name = 'board/tile_2_puzzle.png'
+ tile_available_name = 'board/tile_available_puzzle.png'
+ else:
+ tile_1_name = 'board/tile_1.png'
+ tile_2_name = 'board/tile_2.png'
+ tile_available_name = 'board/tile_available.png'
+
if (x + y) % 2 == 0:
- bg_name = 'board/tile_2.png'
+ bg_name = tile_2_name
else:
- bg_name = 'board/tile_1.png'
+ bg_name = tile_1_name
bg = resources.get_image(bg_name, transforms=(EIGHT_BIT,))
overlays = []
if self.state.gameboard.player_mode == EXAMINE and legal_move:
overlays.append(resources.get_image(
- 'board/tile_available.png', transforms=(EIGHT_BIT,)))
+ tile_available_name, transforms=(EIGHT_BIT,)))
if self.highlighted:
overlays.append(resources.get_image(
'board/tile_selected.png',