diff --git a/pybottle/storm_games.py b/pybottle/storm_games.py index a8f5ee4..31aa1e9 100755 --- a/pybottle/storm_games.py +++ b/pybottle/storm_games.py @@ -17,7 +17,7 @@ def initialize_gui(gameTitle): pygame.display.set_mode((320, 200)) pygame.display.set_caption(gameTitle) # Load sounds from the sound directory and creates a list like that {'bottle': 'bottle.ogg'} - soundFiles = [f for f in listdir(SoundFolder) if isfile(join(SoundFolder, f)) and (f.split('.')[1].lower() == "ogg")] + soundFiles = [f for f in listdir(SoundFolder) if isfile(join(SoundFolder, f)) and (f.split('.')[1].lower() in ["ogg","wav"])] #lets make a dict with pygame.mixer.Sound() objects {'bottle':} soundData = {} for f in soundFiles: