added sprites that shoot back
This commit is contained in:
parent
265f886b23
commit
36d6e309ff
1 changed files with 5 additions and 2 deletions
7
game.py
7
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()
|
||||
|
|
Reference in a new issue