latest changes.

This commit is contained in:
Storm dragon 2016-03-24 07:14:54 -04:00
parent 1f81fb4ee1
commit 4c2c325432
3 changed files with 3 additions and 2 deletions

View File

@ -4,8 +4,9 @@
from storm_games import * from storm_games import *
# Initial variable settings # Initial variable settings
gameName = "Mine Racer"
mode = "menu" mode = "menu"
sounds = initialize_gui("Mine Racer") sounds = initialize_gui(gameName)
def game(): def game():
pygame.mixer.music.load("sounds/music_car.ogg") pygame.mixer.music.load("sounds/music_car.ogg")

View File

@ -39,6 +39,7 @@ def initialize_gui(gameTitle):
def game_menu(*options): def game_menu(*options):
loop = True loop = True
pygame.mixer.music.load("sounds/music_menu.ogg") pygame.mixer.music.load("sounds/music_menu.ogg")
pygame.mixer.music.set_volume(0.75)
pygame.mixer.music.play(-1) pygame.mixer.music.play(-1)
i = 0 i = 0
speak(options[i]) speak(options[i])
@ -53,7 +54,6 @@ def game_menu(*options):
eval(options[i] + "()") eval(options[i] + "()")
continue continue
except: except:
pygame.mixer.music.fadeout(500)
time.sleep(0.25) time.sleep(0.25)
return options[i] return options[i]
continue continue