1
Fork 0

Sounds disabling

This commit is contained in:
Jake Howard 2015-05-12 22:48:12 +01:00
parent cea485736e
commit 0d4580c854

View file

@ -75,8 +75,8 @@ def play(window, options):
return "QUIT" return "QUIT"
if event.type == pygame.KEYDOWN and event.key == pygame.K_SPACE: if event.type == pygame.KEYDOWN and event.key == pygame.K_SPACE:
if not player.options["Sounds"]: Sounds["shot"].play()
temp = Bullet(player, player.options["Textures"]) temp = Bullet(player, player.options["Textures"])
Sounds["shot"].play()
bullet_group.add(temp) bullet_group.add(temp)
if event.type == pygame.KEYDOWN and event.key == pygame.K_KP_PLUS: if event.type == pygame.KEYDOWN and event.key == pygame.K_KP_PLUS: