fixed up some damage number bugs

This commit is contained in:
2025-06-25 22:07:48 +10:00
parent 2bfea6471c
commit 0cd8715468
47 changed files with 6017 additions and 161 deletions

View File

@@ -0,0 +1,31 @@
[gd_resource type="Resource" script_class="Enemy" load_steps=6 format=3 uid="uid://cvehqh4tt28g7"]
[ext_resource type="Script" uid="uid://cbwxa2a4hfcy4" path="res://Scripts/Resources/enemy.gd" id="1_k5sd1"]
[ext_resource type="Texture2D" uid="uid://cv5p03aw78vwd" path="res://Assets/Textures/icon_eye_dog_fast.png" id="1_xgen5"]
[ext_resource type="Texture2D" uid="uid://dgdofekr7ow73" path="res://Assets/Textures/dead_eye_dog_fast.png" id="1_yj87d"]
[ext_resource type="Texture2D" uid="uid://dd212gh03wloa" path="res://Assets/TextureAtlases/dog_fast.tres" id="2_mkbm6"]
[ext_resource type="PackedScene" uid="uid://dtahuv0kpxx03" path="res://Enemies/BabyEyeDog/baby_eye_dog.tscn" id="3_otbdk"]
[resource]
script = ExtResource("1_k5sd1")
title = "Baby Eye Dog"
target_type = 1
scene = ExtResource("3_otbdk")
icon = ExtResource("1_xgen5")
death_sprite = ExtResource("1_yj87d")
sprite = ExtResource("2_mkbm6")
spawn_power = 16
health = 70
penalty = 4
movement_speed = 3.5
spawn_cooldown = 0.6
common_group = 4
common_cost = 2
uncommon_group = 8
uncommon_cost = 2
rare_group = 14
rare_cost = 4
epic_group = 20
epic_cost = 6
legendary_group = 26
legendary_cost = 10

View File

@@ -0,0 +1,124 @@
[gd_scene load_steps=12 format=3 uid="uid://dtahuv0kpxx03"]
[ext_resource type="Script" uid="uid://ejqql2660u6h" path="res://Worlds/GreenPlanet/Enemies/enemy_controller.gd" id="1_8k5ts"]
[ext_resource type="PackedScene" uid="uid://canrxnpxcugc2" path="res://Scenes/corpse.tscn" id="2_vl30x"]
[ext_resource type="Script" uid="uid://cummt2be3r1gq" path="res://Scripts/hitbox.gd" id="5_f7xim"]
[ext_resource type="Texture2D" uid="uid://b1fn60m6xfcsq" path="res://Assets/Textures/minimap_enemy.png" id="6_lbm5h"]
[ext_resource type="PackedScene" uid="uid://hjq3nrnumklp" path="res://Scenes/health_bar.tscn" id="7_o1784"]
[ext_resource type="Script" uid="uid://b62xnsbki8axa" path="res://Scripts/EnemyAI/pathing_controller.gd" id="8_1fak8"]
[ext_resource type="Script" uid="uid://cojjgevmbhwal" path="res://Scripts/status_effector.gd" id="9_yrbee"]
[ext_resource type="PackedScene" uid="uid://bgxr27by7jruo" path="res://Enemies/BabyEyeDog/baby_eyedog.glb" id="10_8k5ts"]
[sub_resource type="SphereShape3D" id="SphereShape3D_cavbv"]
radius = 0.269119
[sub_resource type="SphereShape3D" id="SphereShape3D_h25mw"]
radius = 0.150315
[sub_resource type="ViewportTexture" id="ViewportTexture_1kwxq"]
viewport_path = NodePath("SubViewport")
[node name="BabyEyeDog" type="CharacterBody3D" node_paths=PackedStringArray("status_manager", "movement_controller", "d_n") groups=["Enemies"]]
collision_layer = 4
collision_mask = 0
script = ExtResource("1_8k5ts")
status_manager = NodePath("StatusEffector")
movement_controller = NodePath("PathingController")
d_n = NodePath("Node3D")
corpse_scene = ExtResource("2_vl30x")
metadata/_custom_type_script = "uid://ejqql2660u6h"
[node name="Hitbox" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.195078, -0.0104714)
shape = SubResource("SphereShape3D_cavbv")
script = ExtResource("5_f7xim")
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="Hitbox2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.368244, -0.278334)
shape = SubResource("SphereShape3D_h25mw")
script = ExtResource("5_f7xim")
critical_zone = true
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="HealthBar" type="Sprite3D" parent="."]
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 1.20821, 0)
sorting_offset = 1.0
pixel_size = 0.02
billboard = 1
texture_filter = 0
texture = SubResource("ViewportTexture_1kwxq")
[node name="MinimapIcon" type="Sprite3D" parent="."]
transform = Transform3D(2, 0, 0, 0, -8.74228e-08, 2, 0, -2, -8.74228e-08, 0, 1.40824, 0)
layers = 4
texture_filter = 0
texture = ExtResource("6_lbm5h")
[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
size = Vector2i(200, 55)
render_target_update_mode = 4
[node name="HBoxContainer" type="HBoxContainer" parent="SubViewport"]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 32.0
grow_horizontal = 2
alignment = 1
[node name="HealthBar" parent="SubViewport" instance=ExtResource("7_o1784")]
visible = false
offset_top = 36.0
offset_bottom = 236.0
[node name="PathingController" type="Node" parent="." node_paths=PackedStringArray("character")]
script = ExtResource("8_1fak8")
character = NodePath("..")
[node name="StatusEffector" type="Node" parent="." node_paths=PackedStringArray("sprite_container")]
script = ExtResource("9_yrbee")
sprite_container = NodePath("../SubViewport/HBoxContainer")
metadata/_custom_type_script = "uid://cojjgevmbhwal"
[node name="Node3D" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.39813, 0)
[node name="baby_eyedog" parent="." instance=ExtResource("10_8k5ts")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
[node name="Skeleton3D" parent="baby_eyedog/Armature" index="0"]
bones/1/rotation = Quaternion(-0.511974, 0.0877357, 0.0585473, 0.852501)
bones/3/rotation = Quaternion(0.205478, 0.0638658, 0.760554, 0.612583)
bones/4/rotation = Quaternion(0.180197, 0.674315, 0.227389, 0.67906)
bones/5/rotation = Quaternion(0.219411, 0.0676687, 0.265248, 0.936442)
bones/6/rotation = Quaternion(0.357553, 0.0231832, 0.0724564, 0.930789)
bones/7/rotation = Quaternion(0.181041, -0.117802, -0.730943, 0.647355)
bones/8/rotation = Quaternion(0.233133, -0.689549, -0.187324, 0.659607)
bones/9/rotation = Quaternion(0.274914, -0.0648911, -0.304984, 0.909503)
bones/10/rotation = Quaternion(0.381465, -0.0179444, -0.0905277, 0.919765)
bones/11/position = Vector3(-0.125201, 0.0850381, 0.00341609)
bones/13/rotation = Quaternion(-0.287812, -0.240553, 0.773797, 0.510428)
bones/14/rotation = Quaternion(-0.235014, -0.561232, -0.113218, 0.785474)
bones/15/rotation = Quaternion(0.443157, -0.0165556, 0.3712, 0.815811)
bones/16/rotation = Quaternion(0.407896, 0.0131239, 0.109742, 0.906314)
bones/17/rotation = Quaternion(-0.208372, 0.320971, -0.692574, 0.611474)
bones/18/rotation = Quaternion(-0.295573, 0.573472, 0.215253, 0.733098)
bones/19/rotation = Quaternion(0.3789, 0.0293754, -0.343993, 0.858627)
bones/20/rotation = Quaternion(0.392383, -0.0149631, -0.101692, 0.914041)
bones/21/rotation = Quaternion(0.397177, -1.084e-07, -4.91965e-08, 0.917742)
bones/22/position = Vector3(-0.234358, 0.0193642, 0.253277)
bones/22/scale = Vector3(0.893472, 1, 1)
bones/23/position = Vector3(0.175382, 0.0791651, 0.387213)
bones/23/scale = Vector3(0.893472, 1, 1)
bones/24/position = Vector3(0.189246, 0.0193879, -0.23164)
[node name="AnimationPlayer" parent="baby_eyedog" index="1"]
autoplay = "Walk"
[connection signal="recieved_effect" from="Hitbox" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="Hitbox" to="." method="take_damage"]
[connection signal="recieved_effect" from="Hitbox2" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="Hitbox2" to="." method="take_damage"]
[editable path="baby_eyedog"]

View File

@@ -0,0 +1,13 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://bm7wkdbbvgscq"]
[ext_resource type="Shader" uid="uid://c5bffujq0l70k" path="res://Shaders/jitter.gdshader" id="1_0addr"]
[ext_resource type="Texture2D" uid="uid://rjijctm2a70f" path="res://Enemies/BabyEyeDog/baby_eyedog_tex.png" id="2_4kam3"]
[resource]
render_priority = 0
shader = ExtResource("1_0addr")
shader_parameter/affine_mapping = true
shader_parameter/albedo = ExtResource("2_4kam3")
shader_parameter/alpha_scissor = 0.5
shader_parameter/jitter = 0.25
shader_parameter/resolution = Vector2i(320, 240)

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -2,24 +2,20 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://wx4d2upch81n"
path.s3tc="res://.godot/imported/eyedog_eyedog_tex.png-1f14344e8bf95fbf8ece2e5fc948c9ad.s3tc.ctex"
uid="uid://rjijctm2a70f"
path="res://.godot/imported/baby_eyedog_tex.png-25aa8a1ed412d7c34d0e08868517ff47.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "27dfa54e4c46b8fd6e6f12450e4ca070"
"vram_texture": false
}
[deps]
source_file="res://Enemies/EyeDog/eyedog_eyedog_tex.png"
dest_files=["res://.godot/imported/eyedog_eyedog_tex.png-1f14344e8bf95fbf8ece2e5fc948c9ad.s3tc.ctex"]
source_file="res://Enemies/BabyEyeDog/baby_eyedog_tex.png"
dest_files=["res://.godot/imported/baby_eyedog_tex.png-25aa8a1ed412d7c34d0e08868517ff47.ctex"]
[params]
compress/mode=2
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1

View File

@@ -17,10 +17,10 @@ height = 0.56
[node name="Dog" instance=ExtResource("1_aormu")]
[node name="Sprite3D" parent="." index="1"]
[node name="Sprite3D" parent="." index="0"]
texture = SubResource("ViewportTexture_c5uwa")
[node name="crystal_enemy" parent="." index="7" instance=ExtResource("2_myjng")]
[node name="crystal_enemy" parent="." index="6" instance=ExtResource("2_myjng")]
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="crystal_enemy/Cube_001" index="0"]
remote_path = NodePath("../../../MiniHitbox2")
@@ -32,27 +32,30 @@ remote_path = NodePath("../../../MiniHitbox")
autoplay = "Spin"
speed_scale = 2.0
[node name="MainHitbox" type="CollisionShape3D" parent="." index="8"]
[node name="MainHitbox" type="CollisionShape3D" parent="." index="7"]
shape = SubResource("CapsuleShape3D_c5uwa")
script = ExtResource("3_myjng")
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="MiniHitbox" type="CollisionShape3D" parent="." index="9"]
[node name="MiniHitbox" type="CollisionShape3D" parent="." index="8"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.601335, 0.59523, 0)
shape = SubResource("CapsuleShape3D_d7aub")
script = ExtResource("3_myjng")
critical_zone = true
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="MiniHitbox2" type="CollisionShape3D" parent="." index="10"]
[node name="MiniHitbox2" type="CollisionShape3D" parent="." index="9"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.599804, -0.600394, 0)
shape = SubResource("CapsuleShape3D_d7aub")
script = ExtResource("3_myjng")
critical_zone = true
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[connection signal="took_damage" from="MainHitbox" to="Health" method="take_damage"]
[connection signal="took_damage" from="MiniHitbox" to="Health" method="take_damage"]
[connection signal="took_damage" from="MiniHitbox2" to="Health" method="take_damage"]
[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"]
[connection signal="recieved_effect" from="MiniHitbox2" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="MiniHitbox2" to="." method="take_damage"]
[editable path="crystal_enemy"]

View File

@@ -27,5 +27,5 @@ rare_group = 18
rare_cost = 4
epic_group = 26
epic_cost = 6
legendary_group = 42
legendary_group = 36
legendary_cost = 8

View File

@@ -0,0 +1,31 @@
[gd_resource type="Resource" script_class="Enemy" load_steps=6 format=3 uid="uid://dxi17xvdlhkvc"]
[ext_resource type="Texture2D" uid="uid://08n5jvq5tptf" path="res://Assets/Textures/icon_eye_dog_heavy.png" id="1_lck53"]
[ext_resource type="Script" uid="uid://cbwxa2a4hfcy4" path="res://Scripts/Resources/enemy.gd" id="1_q48il"]
[ext_resource type="Texture2D" uid="uid://e7lahg40lq8a" path="res://Assets/Textures/dead_eye_dog_heavy.png" id="1_qveaa"]
[ext_resource type="Texture2D" uid="uid://c0543ucoalwmi" path="res://Assets/TextureAtlases/dog_fast_heavy.tres" id="2_7nc4x"]
[ext_resource type="PackedScene" uid="uid://dl3rwqwbgrq2m" path="res://Enemies/ElderEyeDog/elder_eye_dog.tscn" id="3_m808b"]
[resource]
script = ExtResource("1_q48il")
title = "Elder Eye Dog"
target_type = 1
scene = ExtResource("3_m808b")
icon = ExtResource("1_lck53")
death_sprite = ExtResource("1_qveaa")
sprite = ExtResource("2_7nc4x")
spawn_power = 14
health = 350
penalty = 15
movement_speed = 0.9
spawn_cooldown = 2.0
common_group = 2
common_cost = 1
uncommon_group = 5
uncommon_cost = 2
rare_group = 8
rare_cost = 3
epic_group = 14
epic_cost = 4
legendary_group = 18
legendary_cost = 5

View File

@@ -0,0 +1,123 @@
[gd_scene load_steps=12 format=3 uid="uid://dl3rwqwbgrq2m"]
[ext_resource type="Script" uid="uid://ejqql2660u6h" path="res://Worlds/GreenPlanet/Enemies/enemy_controller.gd" id="1_17xxt"]
[ext_resource type="PackedScene" uid="uid://canrxnpxcugc2" path="res://Scenes/corpse.tscn" id="2_lirjc"]
[ext_resource type="Script" uid="uid://cummt2be3r1gq" path="res://Scripts/hitbox.gd" id="5_bi7k0"]
[ext_resource type="Texture2D" uid="uid://b1fn60m6xfcsq" path="res://Assets/Textures/minimap_enemy.png" id="6_k6khd"]
[ext_resource type="PackedScene" uid="uid://hjq3nrnumklp" path="res://Scenes/health_bar.tscn" id="7_wko6w"]
[ext_resource type="Script" uid="uid://b62xnsbki8axa" path="res://Scripts/EnemyAI/pathing_controller.gd" id="8_2jssq"]
[ext_resource type="Script" uid="uid://cojjgevmbhwal" path="res://Scripts/status_effector.gd" id="9_2x8lp"]
[ext_resource type="PackedScene" uid="uid://r2s4pd42y0ma" path="res://Enemies/ElderEyeDog/elder_eyedog.glb" id="10_17xxt"]
[sub_resource type="SphereShape3D" id="SphereShape3D_cavbv"]
radius = 0.499268
[sub_resource type="SphereShape3D" id="SphereShape3D_h25mw"]
radius = 0.269705
[sub_resource type="ViewportTexture" id="ViewportTexture_1kwxq"]
viewport_path = NodePath("SubViewport")
[node name="ElderEyeDog" type="CharacterBody3D" node_paths=PackedStringArray("status_manager", "movement_controller", "d_n") groups=["Enemies"]]
collision_layer = 4
collision_mask = 0
script = ExtResource("1_17xxt")
status_manager = NodePath("StatusEffector")
movement_controller = NodePath("PathingController")
d_n = NodePath("Node3D")
corpse_scene = ExtResource("2_lirjc")
metadata/_custom_type_script = "uid://ejqql2660u6h"
[node name="Hitbox" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.33811, -0.0104714)
shape = SubResource("SphereShape3D_cavbv")
script = ExtResource("5_bi7k0")
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="Hitbox2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.740182, -0.597066)
shape = SubResource("SphereShape3D_h25mw")
script = ExtResource("5_bi7k0")
critical_zone = true
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="HealthBar" type="Sprite3D" parent="."]
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 1.20821, 0)
sorting_offset = 1.0
pixel_size = 0.02
billboard = 1
texture_filter = 0
texture = SubResource("ViewportTexture_1kwxq")
[node name="MinimapIcon" type="Sprite3D" parent="."]
transform = Transform3D(2, 0, 0, 0, -8.74228e-08, 2, 0, -2, -8.74228e-08, 0, 1.40824, 0)
layers = 4
texture_filter = 0
texture = ExtResource("6_k6khd")
[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
size = Vector2i(200, 55)
render_target_update_mode = 4
[node name="HBoxContainer" type="HBoxContainer" parent="SubViewport"]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 32.0
grow_horizontal = 2
alignment = 1
[node name="HealthBar" parent="SubViewport" instance=ExtResource("7_wko6w")]
visible = false
offset_top = 36.0
offset_bottom = 236.0
[node name="PathingController" type="Node" parent="." node_paths=PackedStringArray("character")]
script = ExtResource("8_2jssq")
character = NodePath("..")
[node name="StatusEffector" type="Node" parent="." node_paths=PackedStringArray("sprite_container")]
script = ExtResource("9_2x8lp")
sprite_container = NodePath("../SubViewport/HBoxContainer")
metadata/_custom_type_script = "uid://cojjgevmbhwal"
[node name="Node3D" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.39813, 0)
[node name="elder_eyedog" parent="." instance=ExtResource("10_17xxt")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
[node name="Skeleton3D" parent="elder_eyedog/Armature" index="0"]
bones/1/rotation = Quaternion(-0.439304, -1.0709e-07, 5.23691e-08, 0.898338)
bones/3/rotation = Quaternion(0.233785, 0.324851, 0.542755, 0.738399)
bones/4/rotation = Quaternion(0.202596, 0.730837, 0.133447, 0.637985)
bones/5/rotation = Quaternion(0.0807169, 0.113794, 0.103388, 0.984808)
bones/6/rotation = Quaternion(0.1897, 0.0455505, -0.0147276, 0.980674)
bones/7/rotation = Quaternion(0.212592, -0.0409247, -0.776147, 0.592221)
bones/8/rotation = Quaternion(0.145596, -0.673764, -0.223773, 0.689035)
bones/9/rotation = Quaternion(0.21458, -0.0679522, -0.273831, 0.93507)
bones/10/rotation = Quaternion(0.361696, -0.022981, -0.0737815, 0.929088)
bones/11/position = Vector3(-0.182181, 0.0249746, -0.297013)
bones/13/rotation = Quaternion(-0.190314, -0.343714, 0.667305, 0.632728)
bones/14/rotation = Quaternion(-0.315946, -0.576307, -0.237059, 0.715438)
bones/15/rotation = Quaternion(0.36767, -0.0363555, 0.344702, 0.862947)
bones/16/rotation = Quaternion(0.39201, 0.0141284, 0.103499, 0.914011)
bones/17/rotation = Quaternion(-0.415643, 0.234919, -0.806682, 0.348308)
bones/18/rotation = Quaternion(-0.155071, 0.546436, 0.037938, 0.822144)
bones/19/rotation = Quaternion(0.163239, -0.0179424, -0.154066, 0.974318)
bones/20/rotation = Quaternion(0.200947, -0.0385468, -0.00188784, 0.978842)
bones/22/position = Vector3(-0.128557, 0.0159593, 0.519261)
bones/22/scale = Vector3(0.893472, 1, 1)
bones/23/position = Vector3(0.255975, 0.0228185, 0.200587)
bones/23/scale = Vector3(0.893472, 1, 1)
bones/24/position = Vector3(0.0845419, 0.0148535, 0.129847)
[node name="AnimationPlayer" parent="elder_eyedog" index="1"]
autoplay = "Walk"
[connection signal="recieved_effect" from="Hitbox" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="Hitbox" to="." method="take_damage"]
[connection signal="recieved_effect" from="Hitbox2" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="Hitbox2" to="." method="take_damage"]
[editable path="elder_eyedog"]

View File

@@ -0,0 +1,13 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://gyrbycd3icjr"]
[ext_resource type="Shader" uid="uid://c5bffujq0l70k" path="res://Shaders/jitter.gdshader" id="1_x1doh"]
[ext_resource type="Texture2D" uid="uid://bd1hlqvfpaxy0" path="res://Enemies/ElderEyeDog/elder_eyedog_tex.png" id="2_jh2nf"]
[resource]
render_priority = 0
shader = ExtResource("1_x1doh")
shader_parameter/affine_mapping = true
shader_parameter/albedo = ExtResource("2_jh2nf")
shader_parameter/alpha_scissor = 0.5
shader_parameter/jitter = 0.25
shader_parameter/resolution = Vector2i(320, 240)

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bd1hlqvfpaxy0"
path="res://.godot/imported/elder_eyedog_tex.png-e84d9931073744a1cd754d9c856dc8df.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Enemies/ElderEyeDog/elder_eyedog_tex.png"
dest_files=["res://.godot/imported/elder_eyedog_tex.png-e84d9931073744a1cd754d9c856dc8df.ctex"]
[params]
compress/mode=0
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

View File

@@ -14,7 +14,7 @@ region = Rect2(0, 0, 32, 32)
[resource]
resource_local_to_scene = true
script = ExtResource("1_ivs7a")
title = "dog"
title = "Eye Dog"
target_type = 1
scene = ExtResource("3_tyyee")
icon = ExtResource("2_tyyee")

View File

@@ -1,9 +1,7 @@
[gd_scene load_steps=14 format=3 uid="uid://bvq6tbkuv2mfp"]
[gd_scene load_steps=12 format=3 uid="uid://bvq6tbkuv2mfp"]
[ext_resource type="Script" uid="uid://ejqql2660u6h" path="res://Worlds/GreenPlanet/Enemies/enemy_controller.gd" id="1_1dh2f"]
[ext_resource type="PackedScene" uid="uid://canrxnpxcugc2" path="res://Scenes/corpse.tscn" id="2_1dh2f"]
[ext_resource type="Script" uid="uid://bamhci3kawuyt" path="res://Scripts/health.gd" id="2_bckix"]
[ext_resource type="PackedScene" uid="uid://cqtew0t8sttpm" path="res://Scenes/damage_particle.tscn" id="3_wnwjl"]
[ext_resource type="Script" uid="uid://cummt2be3r1gq" path="res://Scripts/hitbox.gd" id="6_3v8fr"]
[ext_resource type="Texture2D" uid="uid://b1fn60m6xfcsq" path="res://Assets/Textures/minimap_enemy.png" id="7_bkkhh"]
[ext_resource type="PackedScene" uid="uid://hjq3nrnumklp" path="res://Scenes/health_bar.tscn" id="8_k2835"]
@@ -12,37 +10,32 @@
[ext_resource type="Script" uid="uid://cojjgevmbhwal" path="res://Scripts/status_effector.gd" id="11_kpdsm"]
[sub_resource type="SphereShape3D" id="SphereShape3D_cavbv"]
radius = 0.42
radius = 0.359969
[sub_resource type="SphereShape3D" id="SphereShape3D_h25mw"]
radius = 0.151085
radius = 0.194271
[sub_resource type="ViewportTexture" id="ViewportTexture_1kwxq"]
viewport_path = NodePath("SubViewport")
[node name="Node3D" type="CharacterBody3D" node_paths=PackedStringArray("status_manager", "movement_controller", "health", "d_n") groups=["Enemies"]]
[node name="EyeDog" type="CharacterBody3D" node_paths=PackedStringArray("status_manager", "movement_controller", "d_n") groups=["Enemies"]]
collision_layer = 4
collision_mask = 0
script = ExtResource("1_1dh2f")
status_manager = NodePath("StatusEffector")
movement_controller = NodePath("PathingController")
health = NodePath("Health")
d_n = NodePath("Node3D")
corpse_scene = ExtResource("2_1dh2f")
metadata/_custom_type_script = "uid://ejqql2660u6h"
[node name="Health" type="Node" parent="."]
script = ExtResource("2_bckix")
damage_particle_scene = ExtResource("3_wnwjl")
[node name="Hitbox" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.33811, 0.0832841)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.33811, -0.0104714)
shape = SubResource("SphereShape3D_cavbv")
script = ExtResource("6_3v8fr")
metadata/_custom_type_script = "uid://cummt2be3r1gq"
[node name="Hitbox2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.601201, -0.436369)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.559695, -0.45924)
shape = SubResource("SphereShape3D_h25mw")
script = ExtResource("6_3v8fr")
critical_zone = true
@@ -92,9 +85,40 @@ metadata/_custom_type_script = "uid://cojjgevmbhwal"
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.39813, 0)
[node name="eyedog" parent="." instance=ExtResource("10_h25mw")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.3764, 0)
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
[connection signal="health_changed" from="Health" to="SubViewport/HealthBar" method="on_health_changed"]
[connection signal="health_depleted" from="Health" to="." method="die"]
[connection signal="took_damage" from="Hitbox" to="Health" method="take_damage"]
[connection signal="took_damage" from="Hitbox2" to="Health" method="take_damage"]
[node name="Skeleton3D" parent="eyedog/Armature" index="0"]
bones/1/rotation = Quaternion(-0.439304, -1.0709e-07, 5.23691e-08, 0.898338)
bones/3/rotation = Quaternion(0.233785, 0.324851, 0.542755, 0.738399)
bones/4/rotation = Quaternion(0.202596, 0.730837, 0.133447, 0.637985)
bones/5/rotation = Quaternion(0.0807169, 0.113794, 0.103388, 0.984808)
bones/6/rotation = Quaternion(0.1897, 0.0455505, -0.0147276, 0.980674)
bones/7/rotation = Quaternion(0.212592, -0.0409247, -0.776147, 0.592221)
bones/8/rotation = Quaternion(0.145596, -0.673764, -0.223773, 0.689035)
bones/9/rotation = Quaternion(0.21458, -0.0679522, -0.273831, 0.93507)
bones/10/rotation = Quaternion(0.361696, -0.022981, -0.0737816, 0.929088)
bones/11/position = Vector3(-0.182181, 0.0249746, -0.297013)
bones/13/rotation = Quaternion(-0.190314, -0.343714, 0.667305, 0.632728)
bones/14/rotation = Quaternion(-0.315946, -0.576307, -0.237059, 0.715438)
bones/15/rotation = Quaternion(0.36767, -0.0363555, 0.344702, 0.862947)
bones/16/rotation = Quaternion(0.39201, 0.0141284, 0.103499, 0.914011)
bones/17/rotation = Quaternion(-0.415643, 0.234919, -0.806682, 0.348308)
bones/18/rotation = Quaternion(-0.155071, 0.546436, 0.037938, 0.822144)
bones/19/rotation = Quaternion(0.16324, -0.0179424, -0.154066, 0.974317)
bones/20/rotation = Quaternion(0.200947, -0.0385468, -0.00188781, 0.978842)
bones/21/rotation = Quaternion(0.476805, -1.04786e-07, -5.68396e-08, 0.879009)
bones/22/position = Vector3(-0.128557, 0.0159593, 0.519261)
bones/22/scale = Vector3(0.893472, 1, 1)
bones/23/position = Vector3(0.255975, 0.0228185, 0.200587)
bones/23/scale = Vector3(0.893472, 1, 1)
bones/24/position = Vector3(0.0845419, 0.0148535, 0.129847)
[node name="AnimationPlayer" parent="eyedog" index="1"]
autoplay = "Walk"
[connection signal="recieved_effect" from="Hitbox" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="Hitbox" to="." method="take_damage"]
[connection signal="recieved_effect" from="Hitbox2" to="StatusEffector" method="add_effect"]
[connection signal="took_damage" from="Hitbox2" to="." method="take_damage"]
[editable path="eyedog"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://br44qpy5v6ymr"
path="res://.godot/imported/eye_dog_tex.png-7d4de85274337ceeb649543e4825dc79.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Enemies/EyeDog/eye_dog_tex.png"
dest_files=["res://.godot/imported/eye_dog_tex.png-7d4de85274337ceeb649543e4825dc79.ctex"]
[params]
compress/mode=0
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.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -1,13 +1,13 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://bo82o88d7vo1x"]
[ext_resource type="Shader" uid="uid://c5bffujq0l70k" path="res://Shaders/jitter.gdshader" id="1_crvh7"]
[ext_resource type="Texture2D" uid="uid://wx4d2upch81n" path="res://Enemies/EyeDog/eyedog_eyedog_tex.png" id="2_j3hec"]
[ext_resource type="Texture2D" uid="uid://br44qpy5v6ymr" path="res://Enemies/EyeDog/eye_dog_tex.png" id="2_1d6vt"]
[resource]
render_priority = 0
shader = ExtResource("1_crvh7")
shader_parameter/affine_mapping = true
shader_parameter/albedo = ExtResource("2_j3hec")
shader_parameter/albedo = ExtResource("2_1d6vt")
shader_parameter/alpha_scissor = 0.5
shader_parameter/jitter = 0.25
shader_parameter/resolution = Vector2i(320, 240)