1
Fork 0

changed extension

This commit is contained in:
Jake Howard 2015-05-21 13:21:37 +01:00
parent 0bbd172764
commit 8f56f52980

View file

@ -72,12 +72,12 @@ def generate_random_level():
Sounds = {}
def init_sounds():
music_files = ["main.wav", "OP.wav", "shot.wav"]
music_files = ["main.ogg", "OP.ogg", "shot.ogg"]
for file in music_files:
path = os.path.dirname(os.path.realpath(__file__)) + "\\resources\\sounds\\" + file
if file == "main.wav":
if file == "main.ogg":
mixer = pygame.mixer.music
mixer.load(path)
else: mixer = pygame.mixer.Sound(path)
mixer.set_volume(1.0)
Sounds[file.replace(".wav", "")] = mixer
Sounds[file.replace(".ogg", "")] = mixer