before planets
This commit is contained in:
parent
bb6404e918
commit
e09f05b566
57 changed files with 1203 additions and 90 deletions
20
entities/gameUI/game_ui.gd
Normal file
20
entities/gameUI/game_ui.gd
Normal file
|
@ -0,0 +1,20 @@
|
|||
extends Control
|
||||
class_name GameUI
|
||||
|
||||
var time : float
|
||||
var lap : int
|
||||
|
||||
@onready var lap_label: Label = $VBoxContainer/LapLabel
|
||||
@onready var time_label: Label = $VBoxContainer/TimeLabel
|
||||
|
||||
func _ready():
|
||||
time = 0
|
||||
lap = 0.0
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
time += delta
|
||||
lap_label.text = "Lap " + str(lap) + "/3"
|
||||
time_label.text = str(round(time*100)/100)
|
||||
|
||||
func _on_check_point_manager_new_lap(value: Variant) -> void:
|
||||
lap = value
|
Loading…
Add table
Add a link
Reference in a new issue