feat: tatoebaspil m kiva hammasbaksu au andrjoku
This commit is contained in:
parent
b2d5ab61d2
commit
050e8f9e22
104 changed files with 3017 additions and 27 deletions
14
scripts/UI/hud.gd
Normal file
14
scripts/UI/hud.gd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
extends Control
|
||||
|
||||
@onready var health_number_label = %HealthNumber
|
||||
@onready var apples_number_label = %AppleNumber
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
|
||||
# Update UI based on information from DataBusSingleton
|
||||
|
||||
var player_health = DataBusSingleton.player_health
|
||||
var apples = DataBusSingleton.apples_collected
|
||||
|
||||
health_number_label.text = str(player_health)
|
||||
apples_number_label.text = str(apples)
|
||||
Loading…
Add table
Add a link
Reference in a new issue