From e9d20130c4a2a6d69f7033f79ab663494098ca47 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 7 May 2015 20:18:55 +0100 Subject: [PATCH] added calls for bullets from targets --- game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.py b/game.py index 9626e64..bfbceff 100644 --- a/game.py +++ b/game.py @@ -111,9 +111,9 @@ def play(window): for sprite in bullet_group: - if not sprite.at_top(): + if not sprite.at_bound(): sprite.update() - if sprite.rect.y < 0: + if sprite.rect.y < 0 or sprite.rect.y > player.rect.y: bullet_group.remove(sprite)