DuckRun/code/hiscore.gd

14 lines
300 B
GDScript3
Raw Normal View History

extends Label
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
text = str($"/root/Global".hiscore)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
#func get_score():
# return int(text)