mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
4fc1daae0d
新增钻石巧克力(Diamond.tscn)和猫头鹰(MTY.tscn)角色资源及相关图片文件 调整猫和狗的掉落物品数量范围 修改EntityBase.gd中物品掉落数量的计算逻辑
77 lines
2.4 KiB
Plaintext
77 lines
2.4 KiB
Plaintext
[gd_scene load_steps=11 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"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_2o6vq"]
|
|
animations = [{
|
|
"frames": [],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [],
|
|
"loop": true,
|
|
"name": &"walk",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_hmu5t"]
|
|
animations = [{
|
|
"frames": [],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uo67a"]
|
|
size = Vector2(81, 62)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_uo67a"]
|
|
radius = 19.026299
|
|
|
|
[node name="Cat" instance=ExtResource("1_hw4g4")]
|
|
script = ExtResource("2_uo67a")
|
|
displayName = "猫"
|
|
drops = Array[int]([0])
|
|
dropCounts = Array[Vector2]([Vector2(6, 10)])
|
|
hurtAudioRate = 0.1
|
|
|
|
[node name="hurt" parent="sounds" index="3"]
|
|
stream = ExtResource("3_2o6vq")
|
|
volume_db = 3.0
|
|
|
|
[node name="die" parent="sounds" index="5"]
|
|
stream = ExtResource("4_2o6vq")
|
|
|
|
[node name="attack0" parent="sounds" index="6"]
|
|
stream = ExtResource("4_rh5rn")
|
|
|
|
[node name="texture" parent="." index="3"]
|
|
sprite_frames = SubResource("SpriteFrames_2o6vq")
|
|
|
|
[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)
|
|
sprite_frames = SubResource("SpriteFrames_hmu5t")
|
|
animation = &"idle"
|
|
|
|
[node name="hitbox" parent="texture/hurtbox" index="0"]
|
|
position = Vector2(-9.5, 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)
|