Browse Source

Flipped sound logic

master V2.0
Jake Howard 6 years ago
parent
commit
42d74daaf8
  1. 2
      game.py

2
game.py

@ -76,7 +76,7 @@ def play(window, options):
return "QUIT"
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"])
bullet_group.add(temp)
fired = True

Loading…
Cancel
Save