From 90e420c9939082adfc44ab40e1f7d9423b96adf7 Mon Sep 17 00:00:00 2001 From: David Sharpe Date: Sun, 18 May 2014 01:35:40 +0200 Subject: [PATCH] How hard? Nintendo hard! (also: that's what she said) --- naja/scenes/new_game.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/naja/scenes/new_game.py b/naja/scenes/new_game.py index 9db6395..29d0f54 100644 --- a/naja/scenes/new_game.py +++ b/naja/scenes/new_game.py @@ -61,6 +61,20 @@ class NewGameScene(Scene): hard.add_callback('click', self.hard_game) selector.add(hard) + y_offset += y_diff + very_hard = TextWidget( + (x_offset, y_offset), 'Very Hard', fontsize=32, colour='white', + centre=True) + very_hard.add_callback('click', self.very_hard_game) + selector.add(very_hard) + + y_offset += y_diff + nintendo = TextWidget( + (x_offset, y_offset), 'NINTENDO Hard', fontsize=32, colour='white', + centre=True) + nintendo.add_callback('click', self.nintendo_hard_game) + selector.add(nintendo) + def easy_game(self, event): self.start_game(GameState.new(max_health=5, wins_required=3)) @@ -70,6 +84,12 @@ class NewGameScene(Scene): def hard_game(self, event): self.start_game(GameState.new(max_health=3, wins_required=5)) + def very_hard_game(self, event): + self.start_game(GameState.new(max_health=2, wins_required=6)) + + def nintendo_hard_game(self, event): + self.start_game(GameState.new(max_health=1, wins_required=7)) + def start_game(self, state): from naja.scenes.game import GameScene LoadGameEvent.post(state=state) -- 2.34.1