From: David Sharpe Date: Sat, 17 May 2014 23:35:40 +0000 (+0200) Subject: How hard? Nintendo hard! (also: that's what she said) X-Git-Tag: 0.1~9 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=90e420c9939082adfc44ab40e1f7d9423b96adf7;p=naja.git How hard? Nintendo hard! (also: that's what she said) --- 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)