1
Fork 0

stop OP music when you press the button again

This commit is contained in:
Jake Howard 2015-05-13 09:31:08 +01:00
parent 7ae0ca4d3f
commit 51f8d3e4eb

View file

@ -86,6 +86,7 @@ def play(window, options):
Sounds["main"].stop() Sounds["main"].stop()
Sounds["OP"].play(loops=-1) Sounds["OP"].play(loops=-1)
player.OP = True player.OP = True
else: Sounds["OP"].stop()
keys = pygame.key.get_pressed() keys = pygame.key.get_pressed()
if keys[pygame.K_RIGHT] or keys[pygame.K_d]: if keys[pygame.K_RIGHT] or keys[pygame.K_d]: