added attacks
This commit is contained in:
@@ -6,6 +6,7 @@ class_name HUD
|
||||
@onready var progress_bar_blue: ProgressBar = $PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainerBlue/ProgressBar
|
||||
@onready var texture_rect: TextureRect = $PanelContainer/MarginContainer/VBoxContainer/TextureRect
|
||||
@onready var lives_container: GridContainer = $PanelContainer/MarginContainer/VBoxContainer/LivesContainer
|
||||
@onready var entity_count_label: Label = $EntityCountContainer/MarginContainer/EntityCountLabel
|
||||
const HEART = preload("res://assets/heart.png")
|
||||
|
||||
func _on_player_color_changed(color: Color) -> void:
|
||||
@@ -23,3 +24,6 @@ func _on_player_lives_changed(lives: int) -> void:
|
||||
lives_container.add_child(life)
|
||||
elif heart_containers.size() > lives:
|
||||
heart_containers.pop_back().queue_free()
|
||||
|
||||
func update_entity_count(count: int):
|
||||
entity_count_label.text = "Entity Count: %s" % count
|
||||
|
||||
Reference in New Issue
Block a user