Aprilgame/Scripts/ui.gd

18 lines
535 B
GDScript3
Raw Permalink Normal View History

2026-06-02 01:07:37 +00:00
extends Control
@onready var health = $VBoxContainer/HBoxContainer/MarginContainer/hEALTH
@onready var time = $VBoxContainer/HBoxContainer/MarginContainer2/TIME
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
health.text = "boombastic"
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func updatehealth(_damage,_health)->void:
health.text = "Health"+str(_health)
func updatetime (timeavailable)->void:
time.text = str(timeavailable)