Initial commit

This commit is contained in:
SEISYUNLie
2026-10-03 15:29:06 +08:00
commit ba36357b90
621 changed files with 13821 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
extends HBoxContainer
@export var full_texture: Texture2D
@export var empty_texture: Texture2D
@export var max_health: int = 5
func update_health(current_health: int):
for i in range(get_child_count()):
var icon = get_child(i) as TextureRect
if i < current_health:
icon.texture = full_texture
else:
icon.texture = empty_texture