1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/components/Characters/Chick.tscn
T
fallingshrimp c3ab252c41 feat(角色): 添加小鸡角色濒死音效并调整属性
添加新的音效资源并修改小鸡角色的属性配置:
1. 新增濒死音效"Dun Dun Dunnn.wav"和受伤音效"foxhurt.mp3"
2. 将小鸡最大生命值从1500调整为15
3. 添加濒死状态检测,当生命值低于10%时播放特殊音效
4. 调整粒子效果和状态栏位置
2025-11-16 16:31:50 +08:00

115 lines
3.9 KiB
Plaintext

[gd_scene load_steps=15 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" uid="uid://b2gg1fh0bflu7" path="res://scripts/Contents/Characters/Chick.gd" id="2_r6bub"]
[ext_resource type="AudioStream" uid="uid://bp41p33g0mep6" path="res://resources/sounds/effect/foxhurt.mp3" id="3_x766l"]
[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://bf34p3xnsosgj" path="res://resources/sounds/effect/Dun Dun Dunnn.wav" id="4_w0sit"]
[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": [],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="SpriteFrames" id="SpriteFrames_x766l"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("8_k8ox8")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("8_k8ox8")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_x766l"]
size = Vector2(57, 114)
[sub_resource type="CircleShape2D" id="CircleShape2D_w0sit"]
radius = 61.03278
[node name="Chick" instance=ExtResource("1_goqmy")]
script = ExtResource("2_r6bub")
isBoss = true
displayName = "狐狸"
drops = Array[int]([0, 1])
dropCounts = Array[Vector2]([Vector2(10, 30), Vector2(15, 50)])
appleCount = Vector2i(2, 4)
hurtAudioRate = 0.1
[node name="hurt" parent="sounds" index="3"]
stream = ExtResource("3_x766l")
[node name="attack1" type="AudioStreamPlayer2D" parent="sounds" index="6"]
stream = ExtResource("4_mrsne")
volume_db = -10.0
[node name="attack2" type="AudioStreamPlayer2D" parent="sounds" index="7"]
stream = ExtResource("5_vcsbb")
[node name="attack3" type="AudioStreamPlayer2D" parent="sounds" index="8"]
stream = ExtResource("7_qjhwc")
[node name="attack0" parent="sounds" index="9"]
stream = ExtResource("4_2qabh")
[node name="readyToDie" type="AudioStreamPlayer2D" parent="sounds" index="10"]
stream = ExtResource("4_w0sit")
volume_db = 10.0
[node name="texture" parent="." index="3"]
position = Vector2(0, -37)
sprite_frames = SubResource("SpriteFrames_xji3d")
animation = &"walk"
[node name="staticAnimation" parent="texture" index="1"]
position = Vector2(0, -94)
scale = Vector2(0.72807497, 0.72807497)
sprite_frames = SubResource("SpriteFrames_x766l")
animation = &"idle"
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(-0.5, -113)
shape = SubResource("RectangleShape2D_x766l")
[node name="hitbox2" type="CollisionShape2D" parent="texture/hurtbox" index="1"]
position = Vector2(117, -149)
shape = SubResource("CircleShape2D_w0sit")
[node name="normal" type="Node2D" parent="texture/weapons" index="0"]
position = Vector2(134, -130)
[node name="firepot" parent="texture/weapons/normal" index="0" instance=ExtResource("6_kvx3n")]
unique_name_in_owner = true
[node name="foot" type="Node2D" parent="texture/weapons" index="1"]
position = Vector2(56, 28)
[node name="trailParticle" parent="texture" index="7"]
position = Vector2(1, -107)
[node name="statebar" parent="." index="4" node_paths=PackedStringArray("entity")]
position = Vector2(0, -227)
entity = NodePath("..")