added attacks

This commit is contained in:
2024-02-14 07:09:32 -06:00
parent 8fc0ed9218
commit e6d1f5a8df
12 changed files with 251 additions and 20 deletions

View File

@@ -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