1
Fork 0

Flipped sound logic

This commit is contained in:
Jake Howard 2015-05-13 09:31:32 +01:00
parent 51f8d3e4eb
commit 42d74daaf8

View file

@ -76,7 +76,7 @@ def play(window, options):
return "QUIT" return "QUIT"
if event.type == pygame.KEYDOWN and event.key in [pygame.K_SPACE, pygame.K_w, pygame.K_UP] and not fired: if event.type == pygame.KEYDOWN and event.key in [pygame.K_SPACE, pygame.K_w, pygame.K_UP] and not fired:
if not player.options["Sounds"]: Sounds["shot"].play() if player.options["Sounds"]: Sounds["shot"].play()
temp = Bullet(player, player.options["Textures"]) temp = Bullet(player, player.options["Textures"])
bullet_group.add(temp) bullet_group.add(temp)
fired = True fired = True