Reworked weapons and projectiles

This commit is contained in:
2025-12-20 18:35:27 +03:00
parent 2ecc53416a
commit 8227e8bcf3
312 changed files with 2466 additions and 1376 deletions
+22
View File
@@ -0,0 +1,22 @@
class_name HealthBar
extends Control
@export var health: Health
@onready var hull_part : HealthBarPart = $HullPart
func _ready() -> void:
if not health: return
hull_part.set_max_value(health.max_hull)
hull_part.set_value(health.hull)
health.hull_updated.connect(_on_hull_updated)
func _on_hull_updated(value: int, max_value: int) -> void:
hull_part.set_value(value)
hull_part.set_max_value(max_value)