Cheat to gain health
authorStefano Rivera <stefano@rivera.za.net>
Fri, 16 May 2014 20:41:04 +0000 (22:41 +0200)
committerStefano Rivera <stefano@rivera.za.net>
Fri, 16 May 2014 20:41:04 +0000 (22:41 +0200)
naja/scenes/game.py

index dda5e1eb53f5832bce5eabe4738eb186d321dc95..0e76f5f8c85a909908e3ab255c705254e6508c8c 100644 (file)
@@ -54,4 +54,6 @@ class GameScene(Scene):
                     self.state.player.bits.toggle_bit(6)
                 elif ev.key == pgl.K_7:
                     self.state.player.bits.toggle_bit(7)
+                elif ev.key == pgl.K_EQUALS:
+                    self.state.gameboard.gain_health()
                 return finish_event()