1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/components/Characters/Hen.tscn
T
fallingshrimp c80d3af6f9 feat(角色): 添加新角色资源及调整现有角色属性
新增狗、猫、鸡、MTY等角色的图片和动画资源,并调整部分角色的属性和动画逻辑。包括:
- 添加狗角色的行走动画和图片资源
- 更新猫角色的行走动画和碰撞体
- 调整鸡角色的属性和动画帧
- 修改MTY角色的攻击冷却时间
- 更新彩虹糖的数值属性
- 优化链式机枪的攻击力属性
- 添加企鹅角色的多帧动画资源
- 更新熊角色的行走动画和面具资源

同时修复了部分角色的碰撞体大小和位置问题。
2026-01-18 14:49:06 +08:00

70 lines
2.2 KiB
Plaintext

[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://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": [{
"duration": 1.0,
"texture": ExtResource("4_rwj47")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_rwj47")
}, {
"duration": 1.0,
"texture": ExtResource("5_j6cvf")
}],
"loop": true,
"name": &"walk",
"speed": 3.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1stll"]
size = Vector2(101, 49.5)
[sub_resource type="CircleShape2D" id="CircleShape2D_rwj47"]
radius = 19.026299
[node name="Hen" instance=ExtResource("1_twxai")]
script = ExtResource("2_8u5a0")
displayName = "母鸡"
drops = Array[int]([1])
dropCounts = Array[Vector2]([Vector2(4, 8)])
hurtAudioRate = 0.1
[node name="hurt" parent="sounds" index="3"]
stream = ExtResource("3_1stll")
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)
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(-13.5, 0.75)
shape = SubResource("RectangleShape2D_1stll")
[node name="hitbox2" type="CollisionShape2D" parent="texture/hurtbox" index="1"]
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, -118)
entity = NodePath("..")