(x_offset, y_offset), deck['description'], fontsize=32,
colour='white', centre=True)
callback = functools.partial(self.start_puzzle_game,
- puzzle=puzzle, deck=deck)
+ puzzle=puzzle)
puzzle_but.add_callback('click', callback)
selector.add(puzzle_but)
- def start_puzzle_game(self, event, puzzle=None, deck=None):
+ def start_puzzle_game(self, event, puzzle=None):
from naja.scenes.game import GameScene
level = 'puzzles/%s' % puzzle
state = GameState.new(deck=level)