-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSounds.py
More file actions
26 lines (18 loc) · 909 Bytes
/
Sounds.py
File metadata and controls
26 lines (18 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import pygame
# Playing the 'click' sound when the player clicks on the menu
def PlayClickSound():
pygame.mixer.Channel(0).play(pygame.mixer.Sound('Sounds/MenuClick.wav'))
def PlayGoldenGearCollection():
pygame.mixer.Channel(1).play(pygame.mixer.Sound('Sounds/Golden Gear.wav'))
def PlayerDamagedSound():
pygame.mixer.Channel(2).play(pygame.mixer.Sound('Sounds/Damaged.wav'))
def VolumeClickSound():
pygame.mixer.Channel(3).play(pygame.mixer.Sound('Sounds/VolClick.wav'))
def PlayerJumpSound():
pygame.mixer.Channel(4).play(pygame.mixer.Sound('Sounds/Jump.wav'))
def BlindingSpiderAttackSound():
pygame.mixer.Channel(5).play(pygame.mixer.Sound('Sounds/Blinding Spider Attack.wav'))
def PlaySpringSound():
pygame.mixer.Channel(6).play(pygame.mixer.Sound('Sounds/Spring.wav'))
def PlayRespawnSound():
pygame.mixer.Channel(7).play(pygame.mixer.Sound('Sounds/Respawn.wav'))