Adds enemies

This commit is contained in:
Michel 2025-02-01 22:51:01 +01:00
parent cf8ba8bacb
commit 76e5b1927f
324 changed files with 28447 additions and 106 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
content/enemies/enemies.fbx Normal file

Binary file not shown.

File diff suppressed because it is too large Load diff

120
content/enemies/enemy.tscn Normal file
View 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"]

View file

@ -0,0 +1,33 @@
[gd_resource type="StandardMaterial3D" load_steps=6 format=3 uid="uid://c7gkxl8ldm4o1"]
[ext_resource type="Texture2D" uid="uid://dnavx8bsrg2cp" path="res://content/rifle/Cardboard001_2K-PNG/Cardboard001_2K-PNG_Color.png" id="1_jli10"]
[ext_resource type="Texture2D" uid="uid://cpmhd8ni4r5lu" path="res://content/rifle/Cardboard001_2K-PNG/Cardboard001_2K-PNG_Roughness.png" id="2_g6sro"]
[ext_resource type="Texture2D" uid="uid://w1qjoj4t60pe" path="res://content/rifle/Cardboard001_2K-PNG/Cardboard001_2K-PNG_Displacement.png" id="3_ufh2e"]
[ext_resource type="Texture2D" uid="uid://dku7f5fijokpn" path="res://content/rifle/Cardboard001_2K-PNG/Cardboard001_2K-PNG_NormalGL.png" id="5_ttwgb"]
[sub_resource type="CurveTexture" id="CurveTexture_oq5c5"]
[resource]
diffuse_mode = 3
specular_mode = 1
albedo_color = Color(0.669713, 1.09979e-05, 0.0924059, 1)
albedo_texture = ExtResource("1_jli10")
metallic_specular = 0.02
roughness_texture = ExtResource("2_g6sro")
normal_enabled = true
normal_scale = 1.7
normal_texture = ExtResource("5_ttwgb")
heightmap_enabled = true
heightmap_scale = 2.658
heightmap_deep_parallax = true
heightmap_min_layers = 8
heightmap_max_layers = 32
heightmap_texture = ExtResource("3_ufh2e")
heightmap_flip_texture = true
backlight_enabled = true
backlight = Color(0.666569, 0.666569, 0.666569, 1)
refraction_scale = -0.25
detail_mask = ExtResource("2_g6sro")
detail_albedo = SubResource("CurveTexture_oq5c5")
uv1_scale = Vector3(4, 4, 4)
grow_amount = -0.103

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://buebtm6i0whgb"
path.s3tc="res://.godot/imported/fire sprite.png-82c64dfdb65271f8a6b6d31d9da241f6.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://content/enemies/sprites/fire sprite.png"
dest_files=["res://.godot/imported/fire sprite.png-82c64dfdb65271f8a6b6d31d9da241f6.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://csn8uoefcbua6"
path.s3tc="res://.godot/imported/idle sprite.png-05c74c10a916b3f6a2d57cb04a5a2bd2.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://content/enemies/sprites/idle sprite.png"
dest_files=["res://.godot/imported/idle sprite.png-05c74c10a916b3f6a2d57cb04a5a2bd2.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0