latest changes.
This commit is contained in:
parent
1f81fb4ee1
commit
4c2c325432
Binary file not shown.
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user