add music to marathon menues
This commit is contained in:
parent
635522f382
commit
32803e9fc3
4 changed files with 17 additions and 0 deletions
BIN
audio/music/rumble_revolution_demo.ogg
Normal file
BIN
audio/music/rumble_revolution_demo.ogg
Normal file
Binary file not shown.
15
audio/music/rumble_revolution_demo.ogg.import
Normal file
15
audio/music/rumble_revolution_demo.ogg.import
Normal 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
|
|
@ -6,6 +6,7 @@ onready var shards: Label = $"%Shards"
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
|
Audio.play_music(load("res://audio/music/rumble_revolution_demo.ogg"))
|
||||||
score.text = score.text % Game.marathon_score
|
score.text = score.text % Game.marathon_score
|
||||||
shards.text = shards.text % Game.marathon_shards
|
shards.text = shards.text % Game.marathon_shards
|
||||||
Fade.fade_in()
|
Fade.fade_in()
|
||||||
|
|
|
@ -13,6 +13,7 @@ onready var difficulty_buttons := [
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
|
Audio.play_music(load("res://audio/music/rumble_revolution_demo.ogg"))
|
||||||
yield(get_tree(), "idle_frame")
|
yield(get_tree(), "idle_frame")
|
||||||
difficulty_buttons[Game.difficulty].grab_focus()
|
difficulty_buttons[Game.difficulty].grab_focus()
|
||||||
Fade.fade_in()
|
Fade.fade_in()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue