From f74812bc3b983b4a2ed7276bcdfb352e2175f428 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 7 May 2015 20:10:47 +0100 Subject: [PATCH] added an OP mode, for dev and cheats --- game.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game.py b/game.py index 5bd42dd..d651a7c 100644 --- a/game.py +++ b/game.py @@ -95,6 +95,8 @@ def play(window): temp = Bullet(player) bullet_group.add(temp) + if event.type == pygame.KEYDOWN and event.key == pygame.K_KP_PLUS: + player.OP = not player.OP keys = pygame.key.get_pressed() if keys[pygame.K_RIGHT] or keys[pygame.K_d]: