feat: created a new enemy entity "flower"
This commit is contained in:
parent
a2c1cd5e57
commit
8fca1d154f
|
@ -1,46 +0,0 @@
|
||||||
[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")
|
|
26
godot/Enemies/flower.tscn
Normal file
26
godot/Enemies/flower.tscn
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
[gd_scene load_steps=3 format=3 uid="uid://dopygosr0hxb5"]
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_ag2i6"]
|
||||||
|
radius = 2.63833
|
||||||
|
|
||||||
|
[sub_resource type="CylinderMesh" id="CylinderMesh_vcf5j"]
|
||||||
|
height = 0.2
|
||||||
|
radial_segments = 16
|
||||||
|
rings = 1
|
||||||
|
cap_bottom = false
|
||||||
|
|
||||||
|
[node name="CharacterActor" type="CharacterActor"]
|
||||||
|
|
||||||
|
[node name="Health" type="Health" parent="."]
|
||||||
|
|
||||||
|
[node name="Planner" type="Planner" parent="."]
|
||||||
|
|
||||||
|
[node name="CharacterAwareness" type="CharacterAwareness" parent="."]
|
||||||
|
collision_mask = 2
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterAwareness"]
|
||||||
|
shape = SubResource("SphereShape3D_ag2i6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.364549, 0)
|
||||||
|
mesh = SubResource("CylinderMesh_vcf5j")
|
Loading…
Reference in a new issue