Esempio n. 1
0
 def load_audio(self):
     self.shield_hit = pygame.mixer.Sound(c.audio_path("shield_hit.wav"))
     self.shield_hit.set_volume(0.08)
     self.hit = pygame.mixer.Sound(c.audio_path("hit.wav"))
     self.hit.set_volume(0.28)
     self.parity_speech = pygame.mixer.Sound(c.audio_path("parity_speech.wav"))
     self.parity_speech.set_volume(0.25)
     self.tetroid_speech = pygame.mixer.Sound(c.audio_path("tetroid_speech.wav"))
     self.tetroid_speech.set_volume(0.10)
     self.warden_speech = pygame.mixer.Sound(c.audio_path("warden_speech.wav"))
     self.warden_speech.set_volume(0.15)
     self.continue_sound = pygame.mixer.Sound(c.audio_path("continue.wav"))
     self.continue_sound.set_volume(0.1)
     self.change_direction_sound = pygame.mixer.Sound(c.audio_path("change_direction.wav"))
     self.change_direction_sound.set_volume(0.12)
     self.slash_sound = pygame.mixer.Sound(c.audio_path("slash.wav"))
     self.slash_sound.set_volume(0.4)
     self.start_game_sound = pygame.mixer.Sound(c.audio_path("start_game.wav"))
     self.start_game_sound.set_volume(0.17)
Esempio n. 2
0
 def load_hedroid_music(self):
     pygame.mixer.music.load(c.audio_path("hedroid.ogg"))
     pygame.mixer.music.play(-1)
Esempio n. 3
0
 def load_tutorial_music(self):
     pygame.mixer.music.load(c.audio_path("parity_echo.ogg"))
     pygame.mixer.music.play(-1)
Esempio n. 4
0
 def load_parity_music(self):
     pygame.mixer.music.load(c.audio_path("parity.ogg"))
     pygame.mixer.music.play(-1)
Esempio n. 5
0
 def load_warden_music(self):
     pygame.mixer.music.load(c.audio_path("warden.ogg"))
     pygame.mixer.music.play(-1)