more work on the ui theme and changing the hud

This commit is contained in:
2025-11-05 08:28:07 +11:00
parent 2f4159ebbe
commit f257a5df68
187 changed files with 806 additions and 799 deletions

View File

@@ -1,24 +0,0 @@
extends Control
@export var shield: ShieldUI
@export var lives_bar: LivesBar
@export var damage_label: Label
var damage: int = 1
func increase_damage() -> void:
damage += 1
damage_label.text = str(damage)
func decrease_damage() -> void:
damage -= 1
if damage < 1:
damage = 1
damage_label.text = str(damage)
func hit() -> void:
shield.take_damage(damage)
for x: int in damage:
lives_bar.take_life()