1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-05 11:17:13 +08:00

feat: 添加水晶着色器并更新角色资源

refactor: 调整角色动画和武器系统
style: 优化代码格式和注释
This commit is contained in:
2025-11-05 22:13:13 +08:00
parent c45a0e570b
commit e64a8b2f9f
109 changed files with 284 additions and 28 deletions
+13 -13
View File
@@ -1,6 +1,6 @@
[gd_scene load_steps=40 format=3 uid="uid://cvogxi7mktumf"]
[ext_resource type="Script" path="res://scripts/Statemachine/EntityBase.gd" id="1_mvol6"]
[ext_resource type="Script" uid="uid://ds3j3f82li68h" path="res://scripts/Statemachine/EntityBase.gd" id="1_mvol6"]
[ext_resource type="Texture2D" uid="uid://dwwpkn4q07ja2" path="res://icon.svg" id="2_7lpu0"]
[ext_resource type="AudioStream" uid="uid://cn876dtp1ypqx" path="res://resources/sounds/effect/Collect.wav" id="2_qt0aq"]
[ext_resource type="PackedScene" uid="uid://dcjqjqere8ets" path="res://components/UI/EntityStateBar.tscn" id="2_uje1g"]
@@ -71,9 +71,9 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_daot2"]
_data = {
"RESET": SubResource("Animation_sxh2u"),
"left": SubResource("Animation_vxanw"),
"right": SubResource("Animation_nuh11")
&"RESET": SubResource("Animation_sxh2u"),
&"left": SubResource("Animation_vxanw"),
&"right": SubResource("Animation_nuh11")
}
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ao5k4"]
@@ -165,8 +165,8 @@ tracks/2/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kbmff"]
_data = {
"RESET": SubResource("Animation_3wcjn"),
"hurt": SubResource("Animation_wl2we")
&"RESET": SubResource("Animation_3wcjn"),
&"hurt": SubResource("Animation_wl2we")
}
[sub_resource type="Animation" id="Animation_n7kxn"]
@@ -281,9 +281,9 @@ tracks/2/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_vvkcp"]
_data = {
"RESET": SubResource("Animation_n7kxn"),
"enter": SubResource("Animation_lg0kn"),
"exit": SubResource("Animation_nfj4q")
&"RESET": SubResource("Animation_n7kxn"),
&"enter": SubResource("Animation_lg0kn"),
&"exit": SubResource("Animation_nfj4q")
}
[sub_resource type="Curve" id="Curve_cs3iy"]
@@ -410,7 +410,7 @@ shape = SubResource("CircleShape2D_buhm1")
[node name="animator" type="AnimationPlayer" parent="texture"]
unique_name_in_owner = true
libraries = {
"": SubResource("AnimationLibrary_daot2")
&"": SubResource("AnimationLibrary_daot2")
}
[node name="animatree" type="AnimationTree" parent="texture/animator"]
@@ -423,13 +423,13 @@ parameters/blend_position = 1.36
[node name="hurtAnimator" type="AnimationPlayer" parent="texture"]
unique_name_in_owner = true
libraries = {
"": SubResource("AnimationLibrary_kbmff")
&"": SubResource("AnimationLibrary_kbmff")
}
[node name="stageAnimator" type="AnimationPlayer" parent="texture"]
unique_name_in_owner = true
libraries = {
"": SubResource("AnimationLibrary_vvkcp")
&"": SubResource("AnimationLibrary_vvkcp")
}
[node name="weapons" type="Node2D" parent="texture"]
@@ -445,9 +445,9 @@ process_material = SubResource("ParticleProcessMaterial_kndb2")
unique_name_in_owner = true
emitting = false
amount = 100
process_material = SubResource("ParticleProcessMaterial_f3xas")
one_shot = true
explosiveness = 1.0
process_material = SubResource("ParticleProcessMaterial_f3xas")
[node name="statebar" parent="." instance=ExtResource("2_uje1g")]
unique_name_in_owner = true
+6 -9
View File
@@ -1,21 +1,20 @@
[gd_scene load_steps=12 format=3 uid="uid://b0ncrvm8u4pox"]
[gd_scene load_steps=11 format=3 uid="uid://b0ncrvm8u4pox"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_goqmy"]
[ext_resource type="Script" path="res://scripts/Contents/Characters/Chick.gd" id="2_r6bub"]
[ext_resource type="Texture2D" uid="uid://7pkplcqqxvnp" path="res://resources/characters/chick/chick-a.svg" id="2_syddq"]
[ext_resource type="Texture2D" uid="uid://dj5dvqb8gsedr" path="res://resources/characters/chick/chick-b.svg" id="3_064jv"]
[ext_resource type="Script" uid="uid://b2gg1fh0bflu7" path="res://scripts/Contents/Characters/Chick.gd" id="2_r6bub"]
[ext_resource type="AudioStream" uid="uid://b7pxuov1id0ho" path="res://resources/sounds/effect/Pew.mp3" id="3_ik1xf"]
[ext_resource type="AudioStream" uid="uid://bgo8p1l77xrbe" path="res://resources/sounds/effect/Magic Spell.wav" id="4_2qabh"]
[ext_resource type="AudioStream" uid="uid://b10u6iir6uvqn" path="res://resources/sounds/effect/BigLaser.wav" id="4_mrsne"]
[ext_resource type="AudioStream" uid="uid://cee6rxv2uqynh" path="res://resources/sounds/effect/Flame.ogg" id="5_vcsbb"]
[ext_resource type="PackedScene" uid="uid://dny25qkcvtaa2" path="res://components/Effects/FirePot.tscn" id="6_kvx3n"]
[ext_resource type="AudioStream" uid="uid://dn6bijr513wyp" path="res://resources/sounds/effect/Drum Boing.wav" id="7_qjhwc"]
[ext_resource type="Texture2D" uid="uid://k0hcr5u2xlk6" path="res://resources/characters/chick/fox.png" id="8_k8ox8"]
[sub_resource type="SpriteFrames" id="SpriteFrames_xji3d"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_syddq")
"texture": ExtResource("8_k8ox8")
}],
"loop": true,
"name": &"idle",
@@ -23,10 +22,7 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_syddq")
}, {
"duration": 1.0,
"texture": ExtResource("3_064jv")
"texture": ExtResource("8_k8ox8")
}],
"loop": true,
"name": &"walk",
@@ -60,6 +56,7 @@ stream = ExtResource("7_qjhwc")
[node name="texture" parent="." index="2"]
position = Vector2(0, -37)
sprite_frames = SubResource("SpriteFrames_xji3d")
animation = &"walk"
[node name="normal" type="Node2D" parent="texture/weapons" index="0"]
position = Vector2(30, -12)
+12 -2
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=15 format=3 uid="uid://bm7ymrri6pykb"]
[gd_scene load_steps=18 format=3 uid="uid://bm7ymrri6pykb"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_e5pl8"]
[ext_resource type="Script" path="res://scripts/Contents/Characters/Rooster.gd" id="2_oqdqd"]
[ext_resource type="Script" uid="uid://cthtupc6dtbav" path="res://scripts/Contents/Characters/Rooster.gd" id="2_oqdqd"]
[ext_resource type="Texture2D" uid="uid://fn8qx72clh38" path="res://resources/characters/cock/rooster-a.svg" id="2_q0j6j"]
[ext_resource type="AudioStream" uid="uid://dclinyhu256xi" path="res://resources/sounds/effect/Low Whoosh.mp3" id="3_4syso"]
[ext_resource type="Texture2D" uid="uid://ci2ik43ce82uy" path="res://resources/characters/cock/rooster-b.svg" id="3_b0fgx"]
@@ -9,8 +9,11 @@
[ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"]
[ext_resource type="AudioStream" uid="uid://benyec5bqni0b" path="res://resources/sounds/effect/Chomp.wav" id="4_k0yme"]
[ext_resource type="PackedScene" uid="uid://bb1uh8k7gkhr7" path="res://components/Weapons/VectorStar.tscn" id="4_omfco"]
[ext_resource type="PackedScene" uid="uid://cxabqjo7skxev" path="res://components/Weapons/BigLaser.tscn" id="5_jpf7h"]
[ext_resource type="AudioStream" uid="uid://dmxh3bpk8vyy5" path="res://resources/sounds/effect/Coin.mp3" id="5_xnbhq"]
[ext_resource type="PackedScene" uid="uid://b2qhes4apaxsj" path="res://components/Weapons/NuclearBomb.tscn" id="6_ldigc"]
[ext_resource type="AudioStream" uid="uid://4wuuf1osk0yv" path="res://resources/sounds/effect/Low Boing.wav" id="6_m5px1"]
[ext_resource type="PackedScene" uid="uid://frwt0fgrpskb" path="res://components/Weapons/Meowmere.tscn" id="7_u4w6u"]
[ext_resource type="AudioStream" uid="uid://b10u6iir6uvqn" path="res://resources/sounds/effect/BigLaser.wav" id="8_7dhim"]
[sub_resource type="SpriteFrames" id="SpriteFrames_4v2ol"]
@@ -50,6 +53,13 @@ debugRebuild = false
[node name="VectorStar" parent="weaponStore" index="1" instance=ExtResource("4_omfco")]
[node name="BigLaser" parent="weaponStore" index="2" instance=ExtResource("5_jpf7h")]
[node name="NuclearBomb" parent="weaponStore" index="3" instance=ExtResource("6_ldigc")]
debugRebuild = false
[node name="Meowmere" parent="weaponStore" index="4" instance=ExtResource("7_u4w6u")]
[node name="sprint" parent="sounds" index="0"]
stream = ExtResource("4_66s6c")