hero-mark-2/menus/marathon_results.gd

19 lines
557 B
GDScript

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
$"%Deaths".text = $"%Deaths".text % Game.marathon_deaths
Fade.fade_in()
func _input(event: InputEvent) -> void:
if Input.is_action_just_pressed("ui_accept"):
Fade.fade_out(Options.transition_speed_secs)
Game.change_map(load("res://menus/marathon_start.tscn"))