diff --git a/mine-racer/__pycache__/storm_games.cpython-35.pyc b/mine-racer/__pycache__/storm_games.cpython-35.pyc index 8d8024a..144446e 100644 Binary files a/mine-racer/__pycache__/storm_games.cpython-35.pyc and b/mine-racer/__pycache__/storm_games.cpython-35.pyc differ diff --git a/mine-racer/mine-racer.py b/mine-racer/mine-racer.py index 5005412..4e134fd 100755 --- a/mine-racer/mine-racer.py +++ b/mine-racer/mine-racer.py @@ -4,8 +4,9 @@ from storm_games import * # Initial variable settings +gameName = "Mine Racer" mode = "menu" -sounds = initialize_gui("Mine Racer") +sounds = initialize_gui(gameName) def game(): pygame.mixer.music.load("sounds/music_car.ogg") diff --git a/mine-racer/storm_games.py b/mine-racer/storm_games.py index 827e6ba..02599d5 100755 --- a/mine-racer/storm_games.py +++ b/mine-racer/storm_games.py @@ -39,6 +39,7 @@ def initialize_gui(gameTitle): def game_menu(*options): loop = True pygame.mixer.music.load("sounds/music_menu.ogg") + pygame.mixer.music.set_volume(0.75) pygame.mixer.music.play(-1) i = 0 speak(options[i]) @@ -53,7 +54,6 @@ def game_menu(*options): eval(options[i] + "()") continue except: - pygame.mixer.music.fadeout(500) time.sleep(0.25) return options[i] continue