From e6adafa5fcaece84c4bc9d2d0d77f5d209c014c8 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 21 Mar 2016 00:33:00 +0100 Subject: [PATCH] add wave --- pybottle/storm_games.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: