forked from team-sg/hero-mark-2
the start of marathon mode
This commit is contained in:
parent
83f0bccd9a
commit
d06acf2522
18 changed files with 607 additions and 26 deletions
19
menus/marathon_results.gd
Normal file
19
menus/marathon_results.gd
Normal file
|
@ -0,0 +1,19 @@
|
|||
extends Control
|
||||
|
||||
|
||||
onready var score: Label = $"%Score"
|
||||
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()
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if Input.is_action_just_pressed("ui_accept"):
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
Game.change_map(load("res://menus/marathon_start.tscn"))
|
Loading…
Add table
Add a link
Reference in a new issue