added calls for bullets from targets
This commit is contained in:
parent
da9b7318f6
commit
e9d20130c4
1 changed files with 2 additions and 2 deletions
4
game.py
4
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)
|
||||
|
||||
|
||||
|
|
Reference in a new issue