This commit is contained in:
Marek
2026-03-29 21:12:00 +02:00
parent ea0d2b51c0
commit b9ed399d34
7 changed files with 86 additions and 7 deletions

View File

@@ -6,6 +6,7 @@
[ext_resource type="Script" path="res://scripts/enemy/enemy_healthbar.gd" id="4"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_movement.gd" id="5"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_combat.gd" id="6"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_aggro.gd" id="7"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1"]
radius = 0.4
@@ -21,6 +22,9 @@ bg_color = Color(0.3, 0.1, 0.1, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_fill"]
bg_color = Color(0.2, 0.8, 0.2, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_fill_aggro"]
bg_color = Color(0.2, 0.4, 0.9, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_shield_bg"]
bg_color = Color(0.1, 0.1, 0.3, 1)
@@ -68,6 +72,9 @@ script = ExtResource("5")
[node name="EnemyCombat" type="Node" parent="."]
script = ExtResource("6")
[node name="EnemyAggro" type="Node" parent="."]
script = ExtResource("7")
[node name="DetectionArea" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 1