X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;ds=sidebyside;f=naja%2Fscenes%2Fpuzzlelist.py;h=4baab4bb66712696f302ff92b5e427e90cfe23a6;hb=de03276f181428cb1c7258428add770dc4c0ecfd;hp=f9c51c1fa13b1a0dbddf5bc9126247ae1a7e1adb;hpb=5cf4ebcfa0ac4f6a947992dc7871a124913b4671;p=naja.git diff --git a/naja/scenes/puzzlelist.py b/naja/scenes/puzzlelist.py index f9c51c1..4baab4b 100644 --- a/naja/scenes/puzzlelist.py +++ b/naja/scenes/puzzlelist.py @@ -42,17 +42,14 @@ class PuzzleListScene(Scene): (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 - max_health = deck.get('max_health', 4) - wins_required = deck.get('wins_required', 4) level = 'puzzles/%s' % puzzle - state = GameState.new(deck=level, max_health=max_health, - wins_required=wins_required) + state = GameState.new(deck=level) LoadGameEvent.post(state=state) SceneChangeEvent.post(GameScene)