Changed shooting occurance
This commit is contained in:
parent
08e21b471a
commit
68f5d76512
1 changed files with 3 additions and 1 deletions
4
game.py
4
game.py
|
@ -126,6 +126,7 @@ def play(window):
|
|||
if keys[pygame.K_KP4] and keys[pygame.K_KP5] and keys[pygame.K_KP6] and player.OP:
|
||||
temp = Bullet(player)
|
||||
bullet_group.add(temp)
|
||||
|
||||
if keys[pygame.K_r] and [pygame.K_9] and [pygame.K_k] and player.OP:
|
||||
eggs.r9k(window)
|
||||
|
||||
|
@ -171,7 +172,7 @@ def play(window):
|
|||
|
||||
for target in target_group:
|
||||
if target.type == "SHOOTER":
|
||||
if randint(0,400) > 1: continue
|
||||
if randint(0,375) > 1: continue
|
||||
temp = Bullet(target)
|
||||
temp.type="TARGET"
|
||||
temp.speed = -3 #So it shoots down!
|
||||
|
@ -181,6 +182,7 @@ def play(window):
|
|||
player.level += 1
|
||||
target_group = generate_targets(player)
|
||||
player.change_colour(player.colours[player.level])
|
||||
target_group.draw()
|
||||
pygame.display.update()
|
||||
sleep(1.5)
|
||||
|
||||
|
|
Reference in a new issue