ed-april-game/scripts/ui.gd
2026-06-01 21:08:48 -04:00

17 lines
523 B
GDScript

extends Control
@onready var health_label: Label = $VBoxContainer/HBoxContainer/MarginContainer/health
@onready var time: Label = $VBoxContainer/HBoxContainer/MarginContainer3/time
@onready var crates: Label = $VBoxContainer/HBoxContainer/MarginContainer2/crates
func _ready() -> void:
pass
func _process(delta: float) -> void:
pass
func update_health(damage:int, health:int):
self.health_label.text = "health: " + str(health)
func update_time(remaining_time: int):
self.time.text = "time: " + str(remaining_time)