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
1 changed files with 2 additions and 2 deletions

View File

@ -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)