added driftling

This commit is contained in:
2026-02-11 08:18:46 +11:00
parent d03f907c24
commit e3d04ca247
30 changed files with 363 additions and 80 deletions

View File

@@ -0,0 +1,22 @@
[gd_resource type="Resource" script_class="Enemy" format=3 uid="uid://dmmdh16m22yqm"]
[ext_resource type="Texture2D" uid="uid://ta47gpiwloxm" path="res://Assets/Textures/dead_bubble.png" id="1_85py1"]
[ext_resource type="Script" uid="uid://cbwxa2a4hfcy4" path="res://Scripts/Resources/enemy.gd" id="1_wa2rs"]
[ext_resource type="Texture2D" uid="uid://chhmkmlfrobhu" path="res://Enemies/Driftling/icon_driftling.png" id="2_4yf64"]
[ext_resource type="PackedScene" uid="uid://ctoqd0fe65ofr" path="res://Enemies/Driftling/scn_driftling.tscn" id="3_pyef7"]
[resource]
script = ExtResource("1_wa2rs")
title = "ENEMY_FLOATING_FRUIT"
description = "ENEMY_DESC_FLOATING_FRUIT"
target_type = 2
icon = ExtResource("2_4yf64")
scene = ExtResource("3_pyef7")
death_sprite = ExtResource("1_85py1")
spawn_power = 3
group_size = 8
health = 25
penalty = 4
movement_speed = 1.3
spawn_cooldown = 0.4
metadata/_custom_type_script = "uid://cbwxa2a4hfcy4"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://chhmkmlfrobhu"
path="res://.godot/imported/icon_driftling.png-1789c848cd61e99bbb7fe7f67d3e59d7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Enemies/Driftling/icon_driftling.png"
dest_files=["res://.godot/imported/icon_driftling.png-1789c848cd61e99bbb7fe7f67d3e59d7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@@ -0,0 +1,12 @@
[gd_resource type="ShaderMaterial" format=3 uid="uid://bqi3hc3r35bij"]
[ext_resource type="Shader" uid="uid://dq04j2s5foo2f" path="res://Shaders/mightyduke_ps1.gdshader" id="1_nil66"]
[ext_resource type="Texture2D" uid="uid://cd0o0ltea1gc5" path="res://Enemies/Driftling/tex_driftling.png" id="2_hy4g3"]
[resource]
render_priority = 0
shader = ExtResource("1_nil66")
shader_parameter/albedo = ExtResource("2_hy4g3")
shader_parameter/jitter_z_coordinate = true
shader_parameter/jitter_depth_independent = true
shader_parameter/alpha_scissor = 1.0

Binary file not shown.

View File

@@ -0,0 +1,50 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://cwgv4x1lemw60"
path="res://.godot/imported/mdl_driftling.glb-9c27fb2767d02357a866b2fb92373c0c.scn"
[deps]
source_file="res://Enemies/Driftling/mdl_driftling.glb"
dest_files=["res://.godot/imported/mdl_driftling.glb-9c27fb2767d02357a866b2fb92373c0c.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=false
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={
"materials": {
"Material": {
"use_external/enabled": true,
"use_external/fallback_path": "res://Enemies/Driftling/mat_driftling.tres",
"use_external/path": "uid://bqi3hc3r35bij"
}
}
}
gltf/naming_version=2
gltf/embedded_image_handling=1

View File

@@ -0,0 +1,111 @@
[gd_scene format=3 uid="uid://ctoqd0fe65ofr"]
[ext_resource type="PackedScene" uid="uid://bjo2q6vca5qlv" path="res://Worlds/GreenPlanet/Enemies/air_enemy.tscn" id="1_8yn7v"]
[ext_resource type="PackedScene" uid="uid://cwgv4x1lemw60" path="res://Enemies/Driftling/mdl_driftling.glb" id="3_8yn7v"]
[ext_resource type="Script" uid="uid://cxu1voan64i5g" path="res://Scripts/driftling_drippler.gd" id="3_j6vnr"]
[ext_resource type="Script" uid="uid://cummt2be3r1gq" path="res://Scripts/hitbox.gd" id="3_w6hpp"]
[sub_resource type="ViewportTexture" id="ViewportTexture_jw1s4"]
viewport_path = NodePath("SubViewport")
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_c5uwa"]
radius = 0.98339844
height = 1.977041
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_d7aub"]
radius = 0.133503
height = 2.1241307
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_w6hpp"]
animation = &"Deflated"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_lgos0"]
animation = &"Bloated"
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_s1mj6"]
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_bw4p2"]
graph_offset = Vector2(-290, 122)
nodes/Blend2/node = SubResource("AnimationNodeBlend2_s1mj6")
nodes/Blend2/position = Vector2(138, 208)
nodes/Animation/node = SubResource("AnimationNodeAnimation_lgos0")
nodes/Animation/position = Vector2(-94, 177)
"nodes/Animation 2/node" = SubResource("AnimationNodeAnimation_w6hpp")
"nodes/Animation 2/position" = Vector2(-66, 358)
node_connections = [&"output", 0, &"Blend2", &"Blend2", 0, &"Animation", &"Blend2", 1, &"Animation 2"]
[node name="Driftling" unique_id=1355419805 instance=ExtResource("1_8yn7v")]
[node name="Sprite3D" parent="." index="0" unique_id=2020998819]
texture = SubResource("ViewportTexture_jw1s4")
[node name="MainHitbox" type="CollisionShape3D" parent="." index="6" unique_id=1521729609]
transform = Transform3D(0.025398083, 0, 0, 0, 0.025398083, 0, 0, 0, 0.025398083, 0, 0.23003143, 0)
visible = false
shape = SubResource("CapsuleShape3D_c5uwa")
script = ExtResource("3_w6hpp")
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="MiniHitbox" type="CollisionShape3D" parent="." index="7" unique_id=1324997842]
transform = Transform3D(0.025398083, 0, 0, 0, 0.025398083, 0, 0, 0, 0.025398083, 0, 0.23003143, 0)
shape = SubResource("CapsuleShape3D_d7aub")
script = ExtResource("3_w6hpp")
critical_zone = true
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="AnimationTree" type="AnimationTree" parent="." index="8" unique_id=1384808804]
root_node = NodePath("../Model/mdl_driftling")
tree_root = SubResource("AnimationNodeBlendTree_bw4p2")
anim_player = NodePath("../Model/mdl_driftling/AnimationPlayer")
parameters/Blend2/blend_amount = 1.0
[node name="DriftlingDrippler" type="Node" parent="." index="9" unique_id=1556854131 node_paths=PackedStringArray("driftling", "animator", "model", "bloat_hitbox", "croak_hitbox")]
script = ExtResource("3_j6vnr")
driftling = NodePath("..")
animator = NodePath("../AnimationTree")
model = NodePath("../Model")
bloat_hitbox = NodePath("../MainHitbox")
croak_hitbox = NodePath("../MiniHitbox")
metadata/_custom_type_script = "uid://cxu1voan64i5g"
[node name="Model" type="Node3D" parent="." index="10" unique_id=1556851526]
[node name="mdl_driftling" parent="Model" index="0" unique_id=2080841843 instance=ExtResource("3_8yn7v")]
transform = Transform3D(0.025398083, 0, 0, 0, 0.025398083, 0, 0, 0, 0.025398083, 0, 0.23003143, 0)
[node name="Skeleton3D" parent="Model/mdl_driftling/Armature" parent_id_path=PackedInt32Array(2080841843, 1116308214) index="0" unique_id=754562592]
bones/0/position = Vector3(0, -7.9475665, 0)
bones/0/scale = Vector3(1.0113525, 1.0113525, 1.0113525)
bones/1/position = Vector3(0, 67.987755, 0)
bones/1/scale = Vector3(0.6716861, 0.6716861, 0.6716861)
bones/2/position = Vector3(-1.6946578e-06, 44.271133, -2.1119783e-06)
bones/2/scale = Vector3(0.40565705, 0.40565705, 0.40565705)
bones/3/position = Vector3(-3.765092e-07, 44.27113, 1.1673371e-06)
bones/3/scale = Vector3(0.4056571, 0.40565705, 0.40565717)
bones/4/position = Vector3(7.770317e-07, 44.27113, -1.5014622e-07)
bones/4/rotation = Quaternion(0.5317831, 0.7070258, 0.46605453, -0.010696763)
bones/4/scale = Vector3(0.4056571, 0.40565705, 0.40565705)
bones/5/position = Vector3(-1.4425112e-06, 44.271122, -1.8969426e-06)
bones/5/rotation = Quaternion(-0.537099, 0.70709294, 0.45991817, -0.0044176164)
bones/5/scale = Vector3(0.40565705, 0.4056571, 0.40565717)
bones/6/position = Vector3(4.4186196, 2.4544883, 0.70625716)
bones/6/rotation = Quaternion(-0.064180955, -0.75551605, -0.054375976, 0.6497073)
bones/7/rotation = Quaternion(-0.27142996, 0.5448384, 0.14401576, 0.78021556)
bones/8/rotation = Quaternion(0.14881423, -0.7253057, -0.009013298, 0.6720898)
bones/9/position = Vector3(-4.8646164, 3.1215818, -1.4573387)
bones/9/rotation = Quaternion(-0.22782737, 0.6727271, -0.011520631, 0.7038467)
bones/10/rotation = Quaternion(-0.10566461, -0.019764336, 0.2930021, 0.9500496)
bones/11/rotation = Quaternion(0.022023587, -0.23883471, -0.0027645533, 0.97080654)
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="Model/mdl_driftling" index="2" unique_id=2128131942]
remote_path = NodePath("../../../MainHitbox")
[node name="RemoteTransform3D2" type="RemoteTransform3D" parent="Model/mdl_driftling" index="3" unique_id=1585476146]
remote_path = NodePath("../../../MiniHitbox")
[connection signal="recieved_effect" from="MainHitbox" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="MainHitbox" to="." method="take_damage"]
[connection signal="recieved_effect" from="MiniHitbox" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="MiniHitbox" to="." method="take_damage"]
[editable path="Model/mdl_driftling"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -0,0 +1,41 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cd0o0ltea1gc5"
path.s3tc="res://.godot/imported/tex_driftling.png-db4d273741c34886144ee624ee680b1a.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://Enemies/Driftling/tex_driftling.png"
dest_files=["res://.godot/imported/tex_driftling.png-db4d273741c34886144ee624ee680b1a.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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