1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-28 22:42:31 +08:00

feat(相机管理): 添加CameraManager类并实现玩家跟随

refactor(物品展示): 修改ItemShow状态机自动隐藏逻辑

feat(游戏逻辑): 添加玩家死亡时的游戏结束界面

style(场景配置): 调整World场景中相机节点位置和偏移

feat(UI): 为ItemShow添加显示动画并更新动画库
This commit is contained in:
2025-08-28 08:15:18 +08:00
parent 857a224f6f
commit 307e3dd63f
7 changed files with 80 additions and 7 deletions
+30 -2
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=3 uid="uid://bbm8l3hr4ihar"]
[gd_scene load_steps=7 format=3 uid="uid://bbm8l3hr4ihar"]
[ext_resource type="Script" path="res://scripts/Statemachine/ItemShow.gd" id="1_2dhsb"]
[ext_resource type="Texture2D" uid="uid://bks8jmctleina" path="res://resources/items/baseball.svg" id="1_hyowb"]
@@ -54,10 +54,38 @@ tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5)
}
[sub_resource type="Animation" id="Animation_pv00d"]
resource_name = "hide"
length = 0.5
step = 0.1
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 0),
"points": PackedFloat32Array(1e-05, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0, 0.5)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:modulate:a")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0, 0),
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0, 0.5)
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xbbtb"]
_data = {
"RESET": SubResource("Animation_6sxrr"),
"hide": SubResource("Animation_ltvf2")
"hide": SubResource("Animation_ltvf2"),
"show": SubResource("Animation_pv00d")
}
[node name="ItemShow" type="HBoxContainer"]