update
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
[gd_scene load_steps=6 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enemy/enemy.gd" id="1"]
|
||||
[ext_resource type="Script" path="res://scripts/components/health.gd" id="2"]
|
||||
[ext_resource type="Script" path="res://scripts/components/shield.gd" id="3"]
|
||||
[ext_resource type="Script" path="res://scripts/components/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"]
|
||||
[ext_resource type="Resource" path="res://resources/stats/enemy_stats.tres" id="8"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1"]
|
||||
@@ -23,9 +19,6 @@ 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)
|
||||
|
||||
@@ -45,6 +38,7 @@ radius = 8.0
|
||||
|
||||
[node name="Enemy" type="CharacterBody3D"]
|
||||
script = ExtResource("1")
|
||||
stats = ExtResource("8")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("CapsuleShape3D_1")
|
||||
@@ -52,14 +46,6 @@ shape = SubResource("CapsuleShape3D_1")
|
||||
[node name="Mesh" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("SphereMesh_1")
|
||||
|
||||
[node name="Health" type="Node" parent="."]
|
||||
script = ExtResource("2")
|
||||
stats = ExtResource("8")
|
||||
|
||||
[node name="Shield" type="Node" parent="."]
|
||||
script = ExtResource("3")
|
||||
stats = ExtResource("8")
|
||||
|
||||
[node name="HitArea" type="Area3D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
@@ -72,12 +58,6 @@ shape = SubResource("CapsuleShape3D_2")
|
||||
[node name="EnemyMovement" type="Node" parent="."]
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user