feat: added simple enemy with chase behaviour
This commit is contained in:
parent
4f564a4f4c
commit
19ba4047ca
10 changed files with 202 additions and 15 deletions
46
godot/Enemies/enemy.tscn
Normal file
46
godot/Enemies/enemy.tscn
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://deb8qiasxsobt"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_tnc8b"]
|
||||
radius = 7.23
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_1inhn"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y3cyo"]
|
||||
albedo_color = Color(0.0666667, 0.223529, 0.254902, 1)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_y311e"]
|
||||
material = SubResource("StandardMaterial3D_y3cyo")
|
||||
size = Vector3(0.77, 0.59, 0.805)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_bc6co"]
|
||||
material = SubResource("StandardMaterial3D_y3cyo")
|
||||
size = Vector3(0.475, 0.495, 0.47)
|
||||
|
||||
[node name="Enemy" type="Enemy"]
|
||||
collision_layer = 7
|
||||
|
||||
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
|
||||
path_desired_distance = 2.25
|
||||
|
||||
[node name="VisionArea" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="VisionArea"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.32109, 0)
|
||||
shape = SubResource("SphereShape3D_tnc8b")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.495191, 0)
|
||||
shape = SubResource("SphereShape3D_1inhn")
|
||||
|
||||
[node name="Health" type="Health" parent="."]
|
||||
max_health = 10
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.445159, -0.0811542)
|
||||
mesh = SubResource("BoxMesh_y311e")
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.430494, 0.458904)
|
||||
mesh = SubResource("BoxMesh_bc6co")
|
||||
Loading…
Add table
Add a link
Reference in a new issue