From 36d6e309ffa16cb9f2e0e2493a41eed4d61a7cf0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 7 May 2015 20:06:10 +0100 Subject: [PATCH] added sprites that shoot back --- game.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/game.py b/game.py index 9325706..41b2371 100644 --- a/game.py +++ b/game.py @@ -132,8 +132,11 @@ def play(window): target_movement_timeout = target_movement_timeout_default - - + for target in target_group: + if target.type == "SHOOTING": + temp = Bullet(target) + temp.speed = -3 #So it shoots down! + bullet_group.add(temp) update_score(window, player.score) player_group.update()