From cb28b4ab4e1a8e1660d2abad63b9e61bbcccad08 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 8 May 2015 10:20:00 +0100 Subject: [PATCH] added loop so targets arent always shooting --- game.py | 1 + 1 file changed, 1 insertion(+) diff --git a/game.py b/game.py index 6359b5a..87518c3 100644 --- a/game.py +++ b/game.py @@ -160,6 +160,7 @@ def play(window): for target in target_group: if target.type == "SHOOTING": + if randint(0,100) > 1: continue temp = Bullet(target) temp.speed = -3 #So it shoots down! bullet_group.add(temp)