From 68f5d765122a28ebf31295e7b0226398e2c3b40a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 11 May 2015 14:28:39 +0100 Subject: [PATCH] Changed shooting occurance --- game.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game.py b/game.py index dec5cee..8ff2b5d 100644 --- a/game.py +++ b/game.py @@ -126,6 +126,7 @@ def play(window): if keys[pygame.K_KP4] and keys[pygame.K_KP5] and keys[pygame.K_KP6] and player.OP: temp = Bullet(player) bullet_group.add(temp) + if keys[pygame.K_r] and [pygame.K_9] and [pygame.K_k] and player.OP: eggs.r9k(window) @@ -171,7 +172,7 @@ def play(window): for target in target_group: if target.type == "SHOOTER": - if randint(0,400) > 1: continue + if randint(0,375) > 1: continue temp = Bullet(target) temp.type="TARGET" temp.speed = -3 #So it shoots down! @@ -181,6 +182,7 @@ def play(window): player.level += 1 target_group = generate_targets(player) player.change_colour(player.colours[player.level]) + target_group.draw() pygame.display.update() sleep(1.5)