1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-14 15:42:30 +08:00

feat(角色): 添加新角色资源及调整现有角色属性

新增狗、猫、鸡、MTY等角色的图片和动画资源,并调整部分角色的属性和动画逻辑。包括:
- 添加狗角色的行走动画和图片资源
- 更新猫角色的行走动画和碰撞体
- 调整鸡角色的属性和动画帧
- 修改MTY角色的攻击冷却时间
- 更新彩虹糖的数值属性
- 优化链式机枪的攻击力属性
- 添加企鹅角色的多帧动画资源
- 更新熊角色的行走动画和面具资源

同时修复了部分角色的碰撞体大小和位置问题。
This commit is contained in:
2026-01-18 14:49:06 +08:00
parent 38833e2840
commit c80d3af6f9
43 changed files with 2111 additions and 79 deletions
+50 -11
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=30 format=3 uid="uid://m60bwhdpbem8"]
[gd_scene load_steps=38 format=3 uid="uid://m60bwhdpbem8"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_3ves7"]
[ext_resource type="Script" uid="uid://cgmnlpa2w6n72" path="res://scripts/Contents/Characters/Bear.gd" id="2_kh2af"]
@@ -8,25 +8,60 @@
[ext_resource type="AudioStream" uid="uid://cqh2yvwcy83gg" path="res://resources/sounds/bossAttack/Bear/Sprint.ogg" id="6_x3jmu"]
[ext_resource type="AudioStream" uid="uid://ce8xjsh68momv" path="res://resources/sounds/bossAttack/Bear/Arrow7-2.ogg" id="7_0r2df"]
[ext_resource type="AudioStream" uid="uid://dd18jfva1knwm" path="res://resources/sounds/bossAttack/Bear/LightGun.ogg" id="8_qagkm"]
[ext_resource type="Texture2D" uid="uid://c0mfcs7x1r6jn" path="res://resources/characters/bear/bear.png" id="9_p5kxp"]
[ext_resource type="Texture2D" uid="uid://54vaedgxog4i" path="res://resources/characters/bear/bear-walk-h.svg" id="9_tfpii"]
[ext_resource type="Texture2D" uid="uid://cmapkmo8ck3g7" path="res://resources/characters/bear/bear-walk-a.svg" id="10_vby4r"]
[ext_resource type="Texture2D" uid="uid://c3pa0vooogyqx" path="res://resources/characters/bear/bear-mask.png" id="11_gg3xf"]
[ext_resource type="Texture2D" uid="uid://b8j8ee5jrcdlq" path="res://resources/characters/bear/bear-walk-b.svg" id="11_og7es"]
[ext_resource type="Texture2D" uid="uid://olok886lpghg" path="res://resources/characters/bear/bear-walk-c.svg" id="12_3j64k"]
[ext_resource type="Shader" uid="uid://6upc63ouwf6q" path="res://shaders/RedTemprature.gdshader" id="12_j8sas"]
[ext_resource type="Texture2D" uid="uid://xka0dvhh8hhq" path="res://resources/characters/bear/bear-walk-d.svg" id="13_v7r73"]
[ext_resource type="Texture2D" uid="uid://vm1drbho5j4t" path="res://resources/characters/bear/bear-walk-e.svg" id="14_mw54f"]
[ext_resource type="Texture2D" uid="uid://c46b6dsltjglj" path="res://resources/characters/bear/bear-walk-f.svg" id="15_2q2wq"]
[ext_resource type="Texture2D" uid="uid://vaglbapaj4e0" path="res://resources/characters/bear/bear-walk-g.svg" id="16_paalv"]
[ext_resource type="Texture2D" uid="uid://b57o6dx0gm5t6" path="res://resources/characters/bear/bear-mask.svg" id="18_vby4r"]
[sub_resource type="SpriteFrames" id="SpriteFrames_6tgxs"]
animations = [{
"frames": [],
"frames": [{
"duration": 1.0,
"texture": ExtResource("9_tfpii")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [],
"frames": [{
"duration": 1.0,
"texture": ExtResource("10_vby4r")
}, {
"duration": 1.0,
"texture": ExtResource("11_og7es")
}, {
"duration": 1.0,
"texture": ExtResource("12_3j64k")
}, {
"duration": 1.0,
"texture": ExtResource("13_v7r73")
}, {
"duration": 1.0,
"texture": ExtResource("14_mw54f")
}, {
"duration": 1.0,
"texture": ExtResource("15_2q2wq")
}, {
"duration": 1.0,
"texture": ExtResource("16_paalv")
}, {
"duration": 1.0,
"texture": ExtResource("9_tfpii")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_akdh6"]
size = Vector2(237, 198)
size = Vector2(224, 152)
[sub_resource type="Animation" id="Animation_sxh2u"]
length = 0.001
@@ -163,15 +198,20 @@ stream = ExtResource("8_qagkm")
stream = ExtResource("3_n5dji")
[node name="texture" parent="." index="3"]
position = Vector2(0, -71)
sprite_frames = SubResource("SpriteFrames_6tgxs")
animation = &"walk"
frame = 7
frame_progress = 0.5584955
[node name="staticBackground" parent="texture" index="0"]
position = Vector2(0, -48)
scale = Vector2(0.58843344, 0.5364395)
texture = ExtResource("9_p5kxp")
[node name="hurtbox" parent="texture" index="2"]
position = Vector2(2, 0)
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(0.5, -49)
shape = SubResource("RectangleShape2D_akdh6")
[node name="animator" parent="texture" index="3"]
@@ -184,9 +224,8 @@ libraries = {
[node name="mask" type="Sprite2D" parent="texture" index="7"]
unique_name_in_owner = true
material = SubResource("ShaderMaterial_gg3xf")
position = Vector2(81, -79)
scale = Vector2(0.588, 0.536)
texture = ExtResource("11_gg3xf")
position = Vector2(65, -42)
texture = ExtResource("18_vby4r")
[node name="sprintParticle" type="GPUParticles2D" parent="texture" index="8"]
unique_name_in_owner = true
@@ -197,7 +236,7 @@ texture = ExtResource("11_gg3xf")
process_material = SubResource("ParticleProcessMaterial_nv4nf")
[node name="statebar" parent="." index="4"]
position = Vector2(0, -209)
position = Vector2(0, -160)
[node name="movebox" parent="." index="5"]
disabled = true
+28 -16
View File
@@ -1,23 +1,40 @@
[gd_scene load_steps=11 format=3 uid="uid://bfkg40awgniv"]
[gd_scene load_steps=12 format=3 uid="uid://bfkg40awgniv"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_hw4g4"]
[ext_resource type="Texture2D" uid="uid://cs6se8dighfgj" path="res://resources/characters/cat/cat.png" id="2_q30ge"]
[ext_resource type="Script" uid="uid://chmxghslo4kc4" path="res://scripts/Contents/Characters/Cat.gd" id="2_uo67a"]
[ext_resource type="AudioStream" uid="uid://c3duk5wy1o3c2" path="res://resources/sounds/effect/Chirp.wav" id="3_2o6vq"]
[ext_resource type="AudioStream" uid="uid://chxpw0sprn4kj" path="res://resources/sounds/effect/Police Siren.wav" id="4_2o6vq"]
[ext_resource type="AudioStream" uid="uid://b7pxuov1id0ho" path="res://resources/sounds/effect/Pew.mp3" id="4_rh5rn"]
[ext_resource type="Texture2D" uid="uid://bk8spvhq72c44" path="res://resources/characters/cat/penguin-b.svg" id="6_i8yb5"]
[ext_resource type="Texture2D" uid="uid://dfid7kvdv8yas" path="res://resources/characters/cat/penguin-a.svg" id="7_kg8tn"]
[ext_resource type="Texture2D" uid="uid://dhof4hf8t0lnw" path="res://resources/characters/cat/penguin-c.svg" id="8_anefu"]
[sub_resource type="SpriteFrames" id="SpriteFrames_2o6vq"]
animations = [{
"frames": [],
"frames": [{
"duration": 1.0,
"texture": ExtResource("6_i8yb5")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [],
"frames": [{
"duration": 1.0,
"texture": ExtResource("7_kg8tn")
}, {
"duration": 1.0,
"texture": ExtResource("6_i8yb5")
}, {
"duration": 1.0,
"texture": ExtResource("8_anefu")
}, {
"duration": 1.0,
"texture": ExtResource("6_i8yb5")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
"speed": 4.0
}]
[sub_resource type="SpriteFrames" id="SpriteFrames_hmu5t"]
@@ -29,10 +46,7 @@ animations = [{
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uo67a"]
size = Vector2(81, 62)
[sub_resource type="CircleShape2D" id="CircleShape2D_uo67a"]
radius = 19.026299
size = Vector2(70, 93)
[node name="Cat" instance=ExtResource("1_hw4g4")]
script = ExtResource("2_uo67a")
@@ -52,12 +66,14 @@ stream = ExtResource("4_2o6vq")
stream = ExtResource("4_rh5rn")
[node name="texture" parent="." index="3"]
position = Vector2(0, -46)
sprite_frames = SubResource("SpriteFrames_2o6vq")
animation = &"walk"
frame_progress = 0.7547687
[node name="staticBackground" parent="texture" index="0"]
position = Vector2(0, -2)
scale = Vector2(0.2, 0.2)
texture = ExtResource("2_q30ge")
[node name="staticAnimation" parent="texture" index="1"]
scale = Vector2(1, 1.289)
@@ -65,12 +81,8 @@ sprite_frames = SubResource("SpriteFrames_hmu5t")
animation = &"idle"
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(-9.5, 5)
position = Vector2(0, -0.5)
shape = SubResource("RectangleShape2D_uo67a")
[node name="hitbox2" type="CollisionShape2D" parent="texture/hurtbox" index="1"]
position = Vector2(43, -2)
shape = SubResource("CircleShape2D_uo67a")
[node name="statebar" parent="." index="4"]
position = Vector2(0, -115)
position = Vector2(0, -106)
+30 -17
View File
@@ -1,13 +1,17 @@
[gd_scene load_steps=9 format=3 uid="uid://bb363wvwvs7m4"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_cbgnh"]
[ext_resource type="Texture2D" uid="uid://cew1kecisufy4" path="res://resources/characters/dog/hsq.png" id="2_oospf"]
[ext_resource type="Script" uid="uid://soehdxfbpmc0" path="res://scripts/Contents/Characters/Dog.gd" id="2_pb36u"]
[ext_resource type="AudioStream" uid="uid://llx2exxpf6k6" path="res://resources/sounds/effect/Dog1.wav" id="3_tn3v8"]
[ext_resource type="Texture2D" uid="uid://c6afkgd0p7fpa" path="res://resources/characters/dog/dog2-a.png" id="4_tn3v8"]
[ext_resource type="Texture2D" uid="uid://bl55w8y7uyy1d" path="res://resources/characters/dog/dog2-b.png" id="5_e644g"]
[sub_resource type="SpriteFrames" id="SpriteFrames_pb36u"]
animations = [{
"frames": [],
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_tn3v8")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
@@ -15,55 +19,64 @@ animations = [{
"frames": [],
"loop": true,
"name": &"walk",
"speed": 5.0
"speed": 1.0
}]
[sub_resource type="SpriteFrames" id="SpriteFrames_tn3v8"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_oospf")
"texture": ExtResource("4_tn3v8")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_tn3v8")
}, {
"duration": 1.0,
"texture": ExtResource("5_e644g")
}],
"loop": true,
"name": &"walk",
"speed": 2.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_e644g"]
size = Vector2(118, 64)
[sub_resource type="CircleShape2D" id="CircleShape2D_s2gll"]
radius = 27.018513
size = Vector2(140, 91)
[node name="Dog" instance=ExtResource("1_cbgnh")]
script = ExtResource("2_pb36u")
displayName = "哈士奇"
drops = Array[int]([3])
dropCounts = Array[Vector2]([Vector2(1, 1)])
useStatic = true
hurtAudioRate = 0.1
[node name="hurt" parent="sounds" index="3"]
stream = ExtResource("3_tn3v8")
[node name="texture" parent="." index="3"]
position = Vector2(0, -62)
sprite_frames = SubResource("SpriteFrames_pb36u")
animation = &"walk"
frame_progress = 0.39797485
[node name="staticAnimation" parent="texture" index="1"]
position = Vector2(0, -19.999998)
scale = Vector2(0.35093215, 0.35093215)
position = Vector2(7, 17)
scale = Vector2(0.6004001, 0.6004001)
sprite_frames = SubResource("SpriteFrames_tn3v8")
animation = &"idle"
animation = &"walk"
frame_progress = 0.6540908
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(-14, -22)
position = Vector2(1, 12.5)
shape = SubResource("RectangleShape2D_e644g")
[node name="hitbox2" type="CollisionShape2D" parent="texture/hurtbox" index="1"]
position = Vector2(46, -51)
shape = SubResource("CircleShape2D_s2gll")
[node name="normal" type="Node2D" parent="texture/weapons" index="0"]
position = Vector2(53, -35)
[node name="statebar" parent="." index="4"]
position = Vector2(0, -150)
position = Vector2(11, -122)
+22 -10
View File
@@ -1,25 +1,35 @@
[gd_scene load_steps=8 format=3 uid="uid://c8h1abpbe6cww"]
[gd_scene load_steps=9 format=3 uid="uid://c8h1abpbe6cww"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_twxai"]
[ext_resource type="Script" uid="uid://dsfht8qodraln" path="res://scripts/Contents/Characters/Hen.gd" id="2_8u5a0"]
[ext_resource type="AudioStream" uid="uid://cougu5tprpf8d" path="res://resources/sounds/effect/Growl.wav" id="3_1stll"]
[ext_resource type="Texture2D" uid="uid://o0t3oma5l6tu" path="res://resources/characters/hen/hen.png" id="4_1stll"]
[ext_resource type="Texture2D" uid="uid://b5m0fpg3ewfum" path="res://resources/characters/hen/hen-a.svg" id="4_rwj47"]
[ext_resource type="Texture2D" uid="uid://3o0oqobnr3b2" path="res://resources/characters/hen/hen-b.svg" id="5_j6cvf"]
[sub_resource type="SpriteFrames" id="SpriteFrames_xwexj"]
animations = [{
"frames": [],
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_rwj47")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [],
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_rwj47")
}, {
"duration": 1.0,
"texture": ExtResource("5_j6cvf")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
"speed": 3.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1stll"]
size = Vector2(85.25, 46.5)
size = Vector2(101, 49.5)
[sub_resource type="CircleShape2D" id="CircleShape2D_rwj47"]
radius = 19.026299
@@ -37,21 +47,23 @@ volume_db = 10.0
[node name="texture" parent="." index="3"]
sprite_frames = SubResource("SpriteFrames_xwexj")
animation = &"walk"
frame = 1
frame_progress = 0.51495796
[node name="staticBackground" parent="texture" index="0"]
scale = Vector2(0.29643428, 0.29643428)
texture = ExtResource("4_1stll")
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(-7.625, 2.25)
position = Vector2(-13.5, 0.75)
shape = SubResource("RectangleShape2D_1stll")
[node name="hitbox2" type="CollisionShape2D" parent="texture/hurtbox" index="1"]
position = Vector2(37, -28)
position = Vector2(49, -28)
shape = SubResource("CircleShape2D_rwj47")
[node name="normal" type="Node2D" parent="texture/weapons" index="0"]
[node name="statebar" parent="." index="4" node_paths=PackedStringArray("entity")]
position = Vector2(0, -107)
position = Vector2(0, -118)
entity = NodePath("..")
+40 -18
View File
@@ -1,10 +1,11 @@
[gd_scene load_steps=7 format=3 uid="uid://b5ysxff1ujv4l"]
[gd_scene load_steps=8 format=3 uid="uid://b5ysxff1ujv4l"]
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_8og84"]
[ext_resource type="Script" uid="uid://b80jr04qpitly" path="res://scripts/Contents/Characters/MTY.gd" id="2_hjlm2"]
[ext_resource type="Texture2D" uid="uid://cpaafqx7vf443" path="res://resources/characters/bird/mty.png" id="2_i2hh0"]
[ext_resource type="Texture2D" uid="uid://b710rxx6yq2x1" path="res://resources/characters/bird/tera-a.svg" id="3_gxm04"]
[ext_resource type="Texture2D" uid="uid://cmmvtcahw5y5e" path="res://resources/characters/bird/tera-d.svg" id="4_ndje2"]
[sub_resource type="SpriteFrames" id="SpriteFrames_hjlm2"]
[sub_resource type="SpriteFrames" id="SpriteFrames_gxm04"]
animations = [{
"frames": [],
"loop": true,
@@ -14,37 +15,58 @@ animations = [{
"frames": [],
"loop": true,
"name": &"walk",
"speed": 5.0
"speed": 0.5
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i2hh0"]
size = Vector2(471, 57)
[sub_resource type="SpriteFrames" id="SpriteFrames_hjlm2"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_gxm04")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_gxm04")
}, {
"duration": 1.0,
"texture": ExtResource("4_ndje2")
}],
"loop": true,
"name": &"walk",
"speed": 0.5
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_hjlm2"]
radius = 37.0
height = 126.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fdkbo"]
size = Vector2(138, 181)
[node name="MTY" instance=ExtResource("1_8og84")]
script = ExtResource("2_hjlm2")
displayName = "猫头鹰"
drops = Array[int]([0, 1, 3])
dropCounts = Array[Vector2]([Vector2(3, 6), Vector2(2, 4), Vector2(1, 3)])
useStatic = true
hurtAudioRate = 0.05
[node name="texture" parent="." index="3"]
sprite_frames = SubResource("SpriteFrames_hjlm2")
position = Vector2(0, -64)
sprite_frames = SubResource("SpriteFrames_gxm04")
[node name="staticBackground" parent="texture" index="0"]
scale = Vector2(0.23718655, 0.23718655)
texture = ExtResource("2_i2hh0")
[node name="staticAnimation" parent="texture" index="1"]
position = Vector2(0, -27)
scale = Vector2(1.42485, 1.42485)
sprite_frames = SubResource("SpriteFrames_hjlm2")
animation = &"idle"
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(-3.5, -13.5)
shape = SubResource("RectangleShape2D_i2hh0")
[node name="hitbox2" type="CollisionShape2D" parent="texture/hurtbox" index="1"]
position = Vector2(0, -3)
shape = SubResource("CapsuleShape2D_hjlm2")
position = Vector2(0, -26.5)
shape = SubResource("RectangleShape2D_fdkbo")
[node name="statebar" parent="." index="4"]
position = Vector2(0, -130)
position = Vector2(0, -199)
+1 -1
View File
@@ -9,7 +9,7 @@ displayName = "彩虹糖"
quality = 3
topic = 4
fields = Array[int]([1, 5, 6, 13, 7, 3])
fieldValues = Array[float]([0.3, 0.35, 0.1, 2.0, 30.0, -0.8])
fieldValues = Array[float]([0.3, 0.35, 0.1, 2.0, 30.0, -0.9])
costs = Array[int]([0, 3])
costCounts = Array[int]([700, 100])
+1 -2
View File
@@ -11,7 +11,7 @@ avatarTexture = ExtResource("2_ghn43")
displayName = "链式机枪"
costBeachball = 400
store = {
"atk": 3,
"atk": 5,
"count": 1,
"split": 15
}
@@ -23,7 +23,6 @@ storeType = {
descriptionTemplate = "超高速发射$count个[b]微型水晶[/b],可造成$atk点伤害,散射+$split。"
needEnergy = 0.75
cooldown = 66.0
debugRebuild = true
[node name="attack" parent="sounds" index="0"]
stream = ExtResource("4_g38si")