before planets

This commit is contained in:
Crizomb 2025-08-03 05:57:42 +02:00
parent bb6404e918
commit e09f05b566
57 changed files with 1203 additions and 90 deletions

View 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