added loop so targets arent always shooting
This commit is contained in:
parent
47464b7428
commit
cb28b4ab4e
1 changed files with 1 additions and 0 deletions
1
game.py
1
game.py
|
@ -160,6 +160,7 @@ def play(window):
|
|||
|
||||
for target in target_group:
|
||||
if target.type == "SHOOTING":
|
||||
if randint(0,100) > 1: continue
|
||||
temp = Bullet(target)
|
||||
temp.speed = -3 #So it shoots down!
|
||||
bullet_group.add(temp)
|
||||
|
|
Reference in a new issue