projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We set defaults in new_game() don't pass parameters that aren't needed
[naja.git]
/
naja
/
scenes
/
puzzlelist.py
diff --git
a/naja/scenes/puzzlelist.py
b/naja/scenes/puzzlelist.py
index f9c51c1fa13b1a0dbddf5bc9126247ae1a7e1adb..670b6b15cad540f4c306ea5739b17225b832114c 100644
(file)
--- a/
naja/scenes/puzzlelist.py
+++ b/
naja/scenes/puzzlelist.py
@@
-48,11
+48,8
@@
class PuzzleListScene(Scene):
def start_puzzle_game(self, event, puzzle=None, deck=None):
from naja.scenes.game import GameScene
def start_puzzle_game(self, event, puzzle=None, deck=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
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)
LoadGameEvent.post(state=state)
SceneChangeEvent.post(GameScene)