Adds enemies
This commit is contained in:
parent
cf8ba8bacb
commit
76e5b1927f
324 changed files with 28447 additions and 106 deletions
120
content/enemies/enemy.tscn
Normal file
120
content/enemies/enemy.tscn
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
[gd_scene load_steps=24 format=3 uid="uid://b1l8fvlceolf8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_n8jwt"]
|
||||
[ext_resource type="PackedScene" uid="uid://o3oir3w6cs1y" path="res://content/enemies/enemies.fbx" id="1_nxu6l"]
|
||||
[ext_resource type="Texture2D" uid="uid://csn8uoefcbua6" path="res://content/enemies/sprites/idle sprite.png" id="2_r5jpp"]
|
||||
[ext_resource type="Animation" uid="uid://cguc5g4xb3ukw" path="res://content/enemies/animations/Vert_Fire.res" id="3_c2uq0"]
|
||||
[ext_resource type="BehaviorTree" uid="uid://db7m2p0at5kmq" path="res://ai/enemy.tres" id="3_laok7"]
|
||||
[ext_resource type="Animation" uid="uid://c4ko34bx2fw2a" path="res://content/enemies/animations/Vert_Idle.res" id="4_ldm0s"]
|
||||
[ext_resource type="Script" path="res://scripts/enemies/enemy_ai.gd" id="4_uu6te"]
|
||||
[ext_resource type="Texture2D" uid="uid://buebtm6i0whgb" path="res://content/enemies/sprites/fire sprite.png" id="5_1c5tu"]
|
||||
[ext_resource type="Animation" uid="uid://bkg0my1x3pao4" path="res://content/enemies/animations/Vert_Move.res" id="5_saiyq"]
|
||||
[ext_resource type="PackedScene" uid="uid://bnwuklgcmgyw8" path="res://content/muzzleflash/muzzleflash.tscn" id="10_dtmwf"]
|
||||
[ext_resource type="Script" path="res://demo/agents/scripts/health.gd" id="11_o71in"]
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jm6ft"]
|
||||
_data = {
|
||||
"Vert_Fire": ExtResource("3_c2uq0"),
|
||||
"Vert_Idle": ExtResource("4_ldm0s"),
|
||||
"Vert_Move": ExtResource("5_saiyq")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ri6g6"]
|
||||
animation = &"Vert_Fire"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_otyax"]
|
||||
animation = &"Vert_Idle"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7uoxm"]
|
||||
animation = &"Vert_Move"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_qm74y"]
|
||||
animation = &"Vert_Move"
|
||||
play_mode = 1
|
||||
|
||||
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_1qala"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_otyax")
|
||||
blend_point_0/pos = 0.0
|
||||
blend_point_1/node = SubResource("AnimationNodeAnimation_7uoxm")
|
||||
blend_point_1/pos = 1.0
|
||||
blend_point_2/node = SubResource("AnimationNodeAnimation_qm74y")
|
||||
blend_point_2/pos = -1.0
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_b6owp"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_flqbt"]
|
||||
xfade_time = 0.1
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_icsoj"]
|
||||
xfade_time = 0.1
|
||||
switch_mode = 2
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_rdhva"]
|
||||
states/Fire/node = SubResource("AnimationNodeAnimation_ri6g6")
|
||||
states/Fire/position = Vector2(405, 185)
|
||||
states/Movement/node = SubResource("AnimationNodeBlendSpace1D_1qala")
|
||||
states/Movement/position = Vector2(405, 100)
|
||||
transitions = ["Start", "Movement", SubResource("AnimationNodeStateMachineTransition_b6owp"), "Movement", "Fire", SubResource("AnimationNodeStateMachineTransition_flqbt"), "Fire", "Movement", SubResource("AnimationNodeStateMachineTransition_icsoj")]
|
||||
graph_offset = Vector2(-376, -32)
|
||||
|
||||
[sub_resource type="BlackboardPlan" id="BlackboardPlan_hf7lk"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ov0pa"]
|
||||
size = Vector3(1, 2.08771, 0.126)
|
||||
|
||||
[node name="Enemy" type="CharacterBody3D"]
|
||||
script = ExtResource("1_n8jwt")
|
||||
|
||||
[node name="enemies" parent="." instance=ExtResource("1_nxu6l")]
|
||||
transform = Transform3D(0.42, 0, 0, 0, 0.42, 0, 0, 0, 0.42, 0, 0, 0)
|
||||
|
||||
[node name="Vert" parent="enemies" index="0"]
|
||||
transform = Transform3D(98.6026, -0.0322576, 16.6591, 0.0327155, 100, -4.37121e-06, -16.6591, 0.00545441, 98.6026, 0, 0.000652267, 0)
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="enemies/Vert" index="0"]
|
||||
transform = Transform3D(0.01, 0, 0, 0, 0.01, 4.37114e-10, 0, -4.37114e-10, 0.01, 0, 0.0260873, 0.000118641)
|
||||
modulate = Color(1, 0.66, 0.66, 1)
|
||||
texture = ExtResource("2_r5jpp")
|
||||
|
||||
[node name="Shoot Marker" type="Node3D" parent="enemies/Vert" index="1"]
|
||||
transform = Transform3D(0.025, 0, 0, 0, 0.025, 0, 0, 0, 0.025, -0.00423838, 0.0391859, 0.000117709)
|
||||
|
||||
[node name="AnimationPlayer" parent="enemies" index="1"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_jm6ft")
|
||||
}
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="enemies/AnimationPlayer" index="0"]
|
||||
root_node = NodePath("../..")
|
||||
tree_root = SubResource("AnimationNodeStateMachine_rdhva")
|
||||
anim_player = NodePath("..")
|
||||
parameters/Movement/blend_position = 0.00270998
|
||||
|
||||
[node name="BTPlayer" type="BTPlayer" parent="." node_paths=PackedStringArray("character", "sprite", "agent", "animationTree", "Origin")]
|
||||
behavior_tree = ExtResource("3_laok7")
|
||||
blackboard_plan = SubResource("BlackboardPlan_hf7lk")
|
||||
script = ExtResource("4_uu6te")
|
||||
character = NodePath("..")
|
||||
sprite = NodePath("../enemies/Vert/Sprite3D")
|
||||
idleTexture = ExtResource("2_r5jpp")
|
||||
aggressiveTexture = ExtResource("5_1c5tu")
|
||||
agent = NodePath("../NavigationAgent")
|
||||
animationTree = NodePath("../enemies/AnimationPlayer/AnimationTree")
|
||||
MuzzleFlash = ExtResource("10_dtmwf")
|
||||
Origin = NodePath("../enemies/Vert/Shoot Marker")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.02066, -0.00598145)
|
||||
shape = SubResource("BoxShape3D_ov0pa")
|
||||
|
||||
[node name="NavigationAgent" type="NavigationAgent3D" parent="."]
|
||||
path_desired_distance = 0.5
|
||||
target_desired_distance = 0.5
|
||||
|
||||
[node name="Health" type="Node" parent="."]
|
||||
script = ExtResource("11_o71in")
|
||||
max_health = 1.0
|
||||
|
||||
[editable path="enemies"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue