1
Fork 0

added loop so targets arent always shooting

This commit is contained in:
Jake Howard 2015-05-08 10:20:00 +01:00
parent 47464b7428
commit cb28b4ab4e

View file

@ -160,6 +160,7 @@ def play(window):
for target in target_group: for target in target_group:
if target.type == "SHOOTING": if target.type == "SHOOTING":
if randint(0,100) > 1: continue
temp = Bullet(target) temp = Bullet(target)
temp.speed = -3 #So it shoots down! temp.speed = -3 #So it shoots down!
bullet_group.add(temp) bullet_group.add(temp)