1
Fork 0

added calls for bullets from targets

This commit is contained in:
Jake Howard 2015-05-07 20:18:55 +01:00
parent da9b7318f6
commit e9d20130c4

View file

@ -111,9 +111,9 @@ def play(window):
for sprite in bullet_group: for sprite in bullet_group:
if not sprite.at_top(): if not sprite.at_bound():
sprite.update() sprite.update()
if sprite.rect.y < 0: if sprite.rect.y < 0 or sprite.rect.y > player.rect.y:
bullet_group.remove(sprite) bullet_group.remove(sprite)