Files
space-shooter/ui.gd
2024-11-25 15:25:41 -06:00

11 lines
252 B
GDScript

extends CanvasLayer
func set_health(health):
print(health)
$HealthMarginContainer/HealthBox/HealthLabel.text = str(health)
func _on_score_timer_timeout() -> void:
Global.score += 100
$ScoreMarginContainer/ScoreLabel.text = str(Global.score)