add music to marathon menues

This commit is contained in:
Haze Weathers 2023-12-30 22:17:59 -05:00
parent 635522f382
commit 32803e9fc3
4 changed files with 17 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,15 @@
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/rumble_revolution_demo.ogg-bb830ea2a0fa56e35cfa032257ded687.oggstr"
[deps]
source_file="res://audio/music/rumble_revolution_demo.ogg"
dest_files=[ "res://.import/rumble_revolution_demo.ogg-bb830ea2a0fa56e35cfa032257ded687.oggstr" ]
[params]
loop=true
loop_offset=0

View file

@ -6,6 +6,7 @@ onready var shards: Label = $"%Shards"
func _ready() -> void:
Audio.play_music(load("res://audio/music/rumble_revolution_demo.ogg"))
score.text = score.text % Game.marathon_score
shards.text = shards.text % Game.marathon_shards
Fade.fade_in()

View file

@ -13,6 +13,7 @@ onready var difficulty_buttons := [
func _ready() -> void:
Audio.play_music(load("res://audio/music/rumble_revolution_demo.ogg"))
yield(get_tree(), "idle_frame")
difficulty_buttons[Game.difficulty].grab_focus()
Fade.fade_in()