diff --git a/asset/dialogue/event_stage.dialogue b/asset/dialogue/event_stage.dialogue index 3a7d0abc..a37c5e1c 100644 --- a/asset/dialogue/event_stage.dialogue +++ b/asset/dialogue/event_stage.dialogue @@ -48,6 +48,8 @@ c03_intro_c04: 0:初始化 1:演出完成 c04_ghost_trapped: 0:初始化 1:第一次开门 2:进入鬼打墙场景 3:鬼打墙结束 4:排队纸人歪头 # 除晦游戏 c04_erase_curse: 0:初始化 1:开始游戏 2:游戏结束 +# 煮肉游戏 +c04_stew_meat: 0:初始化 1:游戏结束 => END diff --git a/asset/dialogue/item_description.dialogue b/asset/dialogue/item_description.dialogue index c206d8b1..023279d1 100644 --- a/asset/dialogue/item_description.dialogue +++ b/asset/dialogue/item_description.dialogue @@ -72,6 +72,8 @@ 按 E 粘上刀把[ID:ui_center_notify_c03粘刀把] 缺少配件,暂时不能用[ID:ui_center_notify_c03绞肉机缺少转轮] 按 E 安装转轮[ID:ui_center_notify_c03绞肉机安装转轮] +# c04 +按 E 放入鲜肉[ID:ui_center_notify_c04放肉煮肉] 获得[ID:ui_获得] 退出[ID:ui_退出] @@ -184,6 +186,11 @@ 符纸钥匙[#texture=c03/符纸钥匙.png][#inspect=c03/ux_符纸钥匙.png][ID:prop_符纸钥匙] 用朱砂绘制着符文的黄纸折叠成的钥匙,与其说是用来开锁,不如说是为了镇压锁住的东西[ID:prop_符纸钥匙_说明] +# c04 +煮熟的肉[#texture=c03/新鲜的肉.png][ID:prop_煮熟的肉] +煮熟的肉[#texture=c03/新鲜的肉.png][ID:prop_煮熟的肉_说明] + + # 旧版 #令牌 [#texture=c01/令牌物品.png][#inspect=c01/令牌.png] [ID:prop_令牌] #装有灵魂的令牌 [#texture=c01/装有灵魂的令牌物品.png][#inspect=c01/装有灵魂的令牌.png] [ID:prop_装有灵魂的令牌] diff --git a/scene/ground/scene/c04/s01_父母房间.tscn b/scene/ground/scene/c04/s01_父母房间.tscn index 043f5787..2fc89104 100644 --- a/scene/ground/scene/c04/s01_父母房间.tscn +++ b/scene/ground/scene/c04/s01_父母房间.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=12 format=3 uid="uid://drjnu33pga6i5"] +[gd_scene load_steps=13 format=3 uid="uid://drjnu33pga6i5"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_36j8f"] [ext_resource type="Script" uid="uid://bkbngux0ije3l" path="res://scene/ground/scene/c04/s01_父母房间.gd" id="2_1k73c"] @@ -10,6 +10,7 @@ [ext_resource type="Texture2D" uid="uid://72r8mpv4dym1" path="res://asset/art/scene/c04/s01_父母房间/藤曼.png" id="6_rfsfd"] [ext_resource type="Script" uid="uid://0wjaho6qkg6s" path="res://manager/event_manager/event_binder.gd" id="7_rfsfd"] [ext_resource type="Texture2D" uid="uid://c22pwj4e7hxo5" path="res://asset/art/scene/c04/s01_父母房间/前景.png" id="9_lkeaf"] +[ext_resource type="PackedScene" uid="uid://7ab1iiq1n12e" path="res://scene/ground/script/c03/s09_closeup桌面.tscn" id="10_lkeaf"] [sub_resource type="AnimationLibrary" id="AnimationLibrary_k01ve"] @@ -70,6 +71,10 @@ metadata/_custom_type_script = "uid://0wjaho6qkg6s" position = Vector2(178, 30) packed_scene = ExtResource("6_1k73c") +[node name="Closeup桌面" parent="Ground/DeployLayer" index="4" instance=ExtResource("5_173ya")] +position = Vector2(306, 34) +packed_scene = ExtResource("10_lkeaf") + [node name="MainPlayer" parent="Ground" index="5"] position = Vector2(63, 95) catty_light_energy = 0.5 diff --git a/scene/ground/scene/c04/s07_佛堂.tscn b/scene/ground/scene/c04/s07_佛堂.tscn index 759c0581..e7c1ce16 100644 --- a/scene/ground/scene/c04/s07_佛堂.tscn +++ b/scene/ground/scene/c04/s07_佛堂.tscn @@ -1,17 +1,20 @@ -[gd_scene load_steps=6 format=3 uid="uid://b6cfu5rs88pql"] +[gd_scene load_steps=9 format=3 uid="uid://b6cfu5rs88pql"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_54u5c"] [ext_resource type="Script" uid="uid://bj0s5kvlf7dnk" path="res://scene/ground/scene/c04/s07_佛堂.gd" id="2_54u5c"] [ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="3_36k7s"] [ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_qgaoq"] +[ext_resource type="PackedScene" uid="uid://dqkxiqbq83cmq" path="res://scene/entity/closeup.tscn" id="5_36k7s"] +[ext_resource type="PackedScene" uid="uid://b03v4u8m55leh" path="res://scene/ground/script/c04/s07_closeup小猫灵牌.tscn" id="6_qgaoq"] +[ext_resource type="PackedScene" uid="uid://d3als2ou8psp4" path="res://scene/ground/script/c04/s07_closeup幻灯片游戏.tscn" id="7_ipc8i"] [sub_resource type="AnimationLibrary" id="AnimationLibrary_k01ve"] -[node name="S06" type="Node2D"] +[node name="S07" type="Node2D"] metadata/_edit_horizontal_guides_ = [-627.0] [node name="Ground" parent="." instance=ExtResource("1_54u5c")] -scene_name = "c04_s06" +scene_name = "c04_s07" player_y = 60 [node name="AnimationPlayer" parent="Ground" index="0"] @@ -45,6 +48,12 @@ status = "opened" [node name="portal_right" parent="Ground/DeployLayer" index="1"] position = Vector2(522, 25) +[node name="Closeup小猫灵牌" parent="Ground/DeployLayer" index="2" instance=ExtResource("5_36k7s")] +packed_scene = ExtResource("6_qgaoq") + +[node name="Closeup幻灯片游戏" parent="Ground/DeployLayer" index="3" instance=ExtResource("5_36k7s")] +packed_scene = ExtResource("7_ipc8i") + [node name="MainPlayer" parent="Ground" index="5"] position = Vector2(63, 95) catty_light_energy = 0.5 diff --git a/scene/ground/scene/c04/s08_三楼III.gd b/scene/ground/scene/c04/s08_三楼III.gd index fc564317..9f575ca9 100644 --- a/scene/ground/scene/c04/s08_三楼III.gd +++ b/scene/ground/scene/c04/s08_三楼III.gd @@ -34,6 +34,10 @@ func _on_ground_ready() -> void: elif trap_stage == 2: # 开始鬼打墙 setup_trap() + + # 做饭的陆仁是否消失 + if $"../DeployLayer/Event煮肉游戏/Ambush陆仁消失".played: + $"../DeployLayer/Event煮肉游戏/Pro陆仁烧饭".hide() func _on_door_interacted() -> void: @@ -152,3 +156,8 @@ func _hide_trap_layer() -> void: tween.parallel().tween_property(l.get_node("蜡烛光3"), "energy", 0.0, 1.0) tween.parallel().tween_property(l.get_node("蜡烛光4"), "energy", 0.0, 1.0) tween.tween_callback(l.hide) + + +func cooking_luren_disappear() -> void: + var luren = $"../DeployLayer/Event煮肉游戏/Pro陆仁烧饭" + create_tween().tween_property(luren, "modulate:a", 0.0, 1.0) \ No newline at end of file diff --git a/scene/ground/scene/c04/s08_三楼III.tscn b/scene/ground/scene/c04/s08_三楼III.tscn index a865f35c..02573e57 100644 --- a/scene/ground/scene/c04/s08_三楼III.tscn +++ b/scene/ground/scene/c04/s08_三楼III.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=48 format=3 uid="uid://dcg8ekvhqxjjs"] +[gd_scene load_steps=49 format=3 uid="uid://dcg8ekvhqxjjs"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_rv7yf"] [ext_resource type="Script" uid="uid://t2p7to688wd3" path="res://scene/ground/scene/c04/s08_三楼III.gd" id="2_ryonc"] @@ -37,6 +37,7 @@ [ext_resource type="Texture2D" uid="uid://bxmc7pas3b6wa" path="res://asset/art/scene/c03/引导纸人/指引纸人4.png" id="30_44hgy"] [ext_resource type="Texture2D" uid="uid://vktpw07jrmnb" path="res://asset/art/gif/c04_鬼打墙/鬼打墙_砖墙.png" id="32_44hgy"] [ext_resource type="Texture2D" uid="uid://dgflh16vwwgpr" path="res://asset/art/gif/c04_鬼打墙/鬼打墙.png" id="32_hrm8u"] +[ext_resource type="Script" uid="uid://bkkiyk5jkdw4d" path="res://manager/event_manager/event2d.gd" id="34_camrr"] [sub_resource type="AnimationLibrary" id="AnimationLibrary_k01ve"] @@ -76,13 +77,13 @@ animations = [{ "speed": 10.0 }] +[sub_resource type="Animation" id="Animation_7u3rr"] +length = 0.001 + [sub_resource type="Animation" id="Animation_a3f3m"] resource_name = "陆仁擦肩走过" length = 6.0 -[sub_resource type="Animation" id="Animation_7u3rr"] -length = 0.001 - [sub_resource type="AnimationLibrary" id="AnimationLibrary_7u3rr"] _data = { &"RESET": SubResource("Animation_7u3rr"), @@ -311,20 +312,7 @@ updater_ease_duration = 0.0 updater_stages = Array[int]([4]) metadata/_custom_type_script = "uid://0wjaho6qkg6s" -[node name="Closeup煮肉游戏" parent="Ground/DeployLayer" index="13" instance=ExtResource("15_frave")] -position = Vector2(126, 12) -packed_scene = ExtResource("16_wdxyg") - -[node name="Pro灶台" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="14"] -position = Vector2(124.5, 28.5) -sprite_frames = ExtResource("17_mavq2") -animation = &"三楼走廊互动动画_灶台冒烟烧火" -frame = 1 -frame_progress = 0.567797 -script = ExtResource("18_ryonc") -metadata/_custom_type_script = "uid://cphfob11f7atx" - -[node name="Event陆蝶演出" type="Node2D" parent="Ground/DeployLayer" index="15"] +[node name="Event陆蝶演出" type="Node2D" parent="Ground/DeployLayer" index="13"] script = ExtResource("19_cl576") event_name = &"c04_ghost_trapped" event_stages = Array[int]([0]) @@ -377,7 +365,7 @@ position = Vector2(371, 2) energy = 0.6 texture = ExtResource("23_a3f3m") -[node name="鬼打墙两侧纸人" type="Node2D" parent="Ground/DeployLayer" index="16"] +[node name="鬼打墙两侧纸人" type="Node2D" parent="Ground/DeployLayer" index="14"] visible = false [node name="VisibleStaticBody" type="StaticBody2D" parent="Ground/DeployLayer/鬼打墙两侧纸人"] @@ -427,6 +415,40 @@ one_shot = false cooldown_time = 1.0 hook_os_key = "c04_鬼打墙_走向楼梯" +[node name="Event煮肉游戏" type="Node2D" parent="Ground/DeployLayer" index="15"] +script = ExtResource("34_camrr") +event_name = &"c04_stew_meat" +event_stages = Array[int]([0]) +pre_event_name = &"current_chapter_stage" +pre_event_stages = Array[int]([4]) +metadata/_custom_type_script = "uid://bkkiyk5jkdw4d" + +[node name="Pro灶台" type="AnimatedSprite2D" parent="Ground/DeployLayer/Event煮肉游戏"] +position = Vector2(124.5, 28.5) +sprite_frames = ExtResource("17_mavq2") +animation = &"三楼走廊互动动画_灶台冒烟烧火" +frame = 1 +frame_progress = 0.567797 +script = ExtResource("18_ryonc") +metadata/_custom_type_script = "uid://cphfob11f7atx" + +[node name="Closeup煮肉游戏" parent="Ground/DeployLayer/Event煮肉游戏" instance=ExtResource("15_frave")] +position = Vector2(126, 12) +packed_scene = ExtResource("16_wdxyg") + +[node name="Pro陆仁烧饭" type="AnimatedSprite2D" parent="Ground/DeployLayer/Event煮肉游戏"] +position = Vector2(124.5, 28.5) +sprite_frames = ExtResource("17_mavq2") +animation = &"三楼走廊互动动画_陆仁烧饭" +script = ExtResource("18_ryonc") +metadata/_custom_type_script = "uid://cphfob11f7atx" + +[node name="Ambush陆仁消失" parent="Ground/DeployLayer/Event煮肉游戏" instance=ExtResource("20_cl576")] +position = Vector2(126, 36) +enter_affected_by_visibility = true +collision_width_and_x = Vector2(196.84, 0) +hook_method = "cooking_luren_disappear" + [node name="MainPlayer" parent="Ground" index="5"] position = Vector2(34, 98) catty_light_energy = 0.5 diff --git a/scene/ground/script/c03/s09_closeup桌面.gd b/scene/ground/script/c03/s09_closeup桌面.gd new file mode 100644 index 00000000..00b04ceb --- /dev/null +++ b/scene/ground/script/c03/s09_closeup桌面.gd @@ -0,0 +1,7 @@ +extends CanvasLayer + +@warning_ignore("unused_signal") +signal exit(arg) + +func _ready() -> void: + layer = GlobalConfig.CANVAS_LAYER_LITTLE_GAME diff --git a/scene/ground/script/c03/s09_closeup桌面.gd.uid b/scene/ground/script/c03/s09_closeup桌面.gd.uid new file mode 100644 index 00000000..d4ebaa80 --- /dev/null +++ b/scene/ground/script/c03/s09_closeup桌面.gd.uid @@ -0,0 +1 @@ +uid://cfntc0sbl2wqj diff --git a/scene/ground/script/c03/s09_closeup桌面.tscn b/scene/ground/script/c03/s09_closeup桌面.tscn new file mode 100644 index 00000000..390a4d2d --- /dev/null +++ b/scene/ground/script/c03/s09_closeup桌面.tscn @@ -0,0 +1,67 @@ +[gd_scene load_steps=8 format=3 uid="uid://7ab1iiq1n12e"] + +[ext_resource type="Script" uid="uid://cfntc0sbl2wqj" path="res://scene/ground/script/c03/s09_closeup桌面.gd" id="1_m1vcj"] +[ext_resource type="Texture2D" uid="uid://cbql1i4hblmt1" path="res://asset/art/ui/遮罩/inspect特写通用遮罩.png" id="2_j6oaf"] +[ext_resource type="Texture2D" uid="uid://dm0oe7mugito8" path="res://asset/art/scene/c04/s00_父母房间桌面_客厅儿童画墙面/ux_桌面参考.png" id="2_m1vcj"] +[ext_resource type="PackedScene" uid="uid://dmysq4sxx8iqh" path="res://scene/entity/ux/content_inspector.tscn" id="3_b1uue"] +[ext_resource type="Texture2D" uid="uid://dyo8kwn5ikick" path="res://asset/art/scene/c04/s00_父母房间桌面_客厅儿童画墙面/相框(完整照片).png" id="3_j6oaf"] +[ext_resource type="Texture2D" uid="uid://f186lvt5y2ql" path="res://asset/art/ui/遮罩/inspect背景遮罩.png" id="5_dqn1c"] +[ext_resource type="Script" uid="uid://dpocj5al0rvai" path="res://ui/text_helper.gd" id="6_2s8a4"] + +[node name="Closeup桌面" type="CanvasLayer"] +script = ExtResource("1_m1vcj") + +[node name="BG" type="TextureRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_horizontal = 0 +size_flags_vertical = 0 +texture = ExtResource("2_m1vcj") +stretch_mode = 3 + +[node name="照片_完整" type="Sprite2D" parent="."] +position = Vector2(282, 158) +texture = ExtResource("3_j6oaf") + +[node name="遮罩" type="TextureRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +texture = ExtResource("2_j6oaf") + +[node name="ContentInspector" parent="." instance=ExtResource("3_b1uue")] +visible = false + +[node name="遮罩" type="TextureRect" parent="ContentInspector"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +texture = ExtResource("5_dqn1c") + +[node name="Label" type="Label" parent="ContentInspector/遮罩"] +custom_minimum_size = Vector2(180, 0) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -60.0 +offset_top = -15.5 +offset_right = 60.0 +offset_bottom = 15.5 +grow_horizontal = 2 +grow_vertical = 2 +vertical_alignment = 1 +autowrap_mode = 3 +script = ExtResource("6_2s8a4") diff --git a/scene/ground/script/c04/s05_closeup墙上儿童画.tscn b/scene/ground/script/c04/s05_closeup墙上儿童画.tscn index 4661c654..846ecbf2 100644 --- a/scene/ground/script/c04/s05_closeup墙上儿童画.tscn +++ b/scene/ground/script/c04/s05_closeup墙上儿童画.tscn @@ -1,13 +1,36 @@ -[gd_scene load_steps=4 format=3 uid="uid://d2yek8smeukdl"] +[gd_scene load_steps=8 format=3 uid="uid://d2yek8smeukdl"] [ext_resource type="Script" uid="uid://c1mritq6t1xq4" path="res://scene/ground/script/c04/s05_closeup墙上儿童画.gd" id="1_pgpxy"] [ext_resource type="Texture2D" uid="uid://bd2bdv8hw7m32" path="res://asset/art/scene/c04/s00_父母房间桌面_客厅儿童画墙面/ux_儿童画_未撕下.png" id="2_cvag8"] [ext_resource type="Texture2D" uid="uid://cbql1i4hblmt1" path="res://asset/art/ui/遮罩/inspect特写通用遮罩.png" id="2_fiuta"] +[ext_resource type="Texture2D" uid="uid://dxu3rfuvtvr42" path="res://asset/art/scene/c04/s00_父母房间桌面_客厅儿童画墙面/ux_儿童画_撕下后变形.png" id="2_pgpxy"] +[ext_resource type="Texture2D" uid="uid://cppbhpj7xdpi0" path="res://asset/art/scene/c04/s00_父母房间桌面_客厅儿童画墙面/ux_儿童画_撕下后.png" id="3_fiuta"] +[ext_resource type="PackedScene" uid="uid://bkk1rxx36ghrl" path="res://scene/entity/ux/hover_light_click_area.tscn" id="5_k48e4"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_rb8wa"] [node name="Closeup墙上儿童画" type="CanvasLayer"] script = ExtResource("1_pgpxy") -[node name="BG" type="TextureRect" parent="."] +[node name="撕下后变形" type="TextureRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("2_pgpxy") + +[node name="撕下后" type="TextureRect" parent="."] +visible = false +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("3_fiuta") + +[node name="未撕下" type="TextureRect" parent="."] +visible = false anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -15,6 +38,14 @@ grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("2_cvag8") +[node name="HoverLightClickArea" parent="." instance=ExtResource("5_k48e4")] +position = Vector2(282, 226) + +[node name="PointLight2D" type="PointLight2D" parent="HoverLightClickArea"] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="HoverLightClickArea"] +shape = SubResource("RectangleShape2D_rb8wa") + [node name="遮罩" type="TextureRect" parent="."] anchors_preset = 15 anchor_right = 1.0 diff --git a/scene/ground/script/c04/s07_closeup小猫灵牌.gd b/scene/ground/script/c04/s07_closeup小猫灵牌.gd new file mode 100644 index 00000000..00b04ceb --- /dev/null +++ b/scene/ground/script/c04/s07_closeup小猫灵牌.gd @@ -0,0 +1,7 @@ +extends CanvasLayer + +@warning_ignore("unused_signal") +signal exit(arg) + +func _ready() -> void: + layer = GlobalConfig.CANVAS_LAYER_LITTLE_GAME diff --git a/scene/ground/script/c04/s07_closeup小猫灵牌.gd.uid b/scene/ground/script/c04/s07_closeup小猫灵牌.gd.uid new file mode 100644 index 00000000..f23bda16 --- /dev/null +++ b/scene/ground/script/c04/s07_closeup小猫灵牌.gd.uid @@ -0,0 +1 @@ +uid://dsr4gd8cu0yu4 diff --git a/scene/ground/script/c04/s07_closeup小猫灵牌.tscn b/scene/ground/script/c04/s07_closeup小猫灵牌.tscn new file mode 100644 index 00000000..4a5a3311 --- /dev/null +++ b/scene/ground/script/c04/s07_closeup小猫灵牌.tscn @@ -0,0 +1,56 @@ +[gd_scene load_steps=6 format=3 uid="uid://b03v4u8m55leh"] + +[ext_resource type="Script" uid="uid://dsr4gd8cu0yu4" path="res://scene/ground/script/c04/s07_closeup小猫灵牌.gd" id="1_pl6vt"] +[ext_resource type="Texture2D" uid="uid://cbql1i4hblmt1" path="res://asset/art/ui/遮罩/inspect特写通用遮罩.png" id="2_ap5lo"] +[ext_resource type="PackedScene" uid="uid://dmysq4sxx8iqh" path="res://scene/entity/ux/content_inspector.tscn" id="3_4x10w"] +[ext_resource type="Texture2D" uid="uid://f186lvt5y2ql" path="res://asset/art/ui/遮罩/inspect背景遮罩.png" id="5_42tbg"] +[ext_resource type="Script" uid="uid://dpocj5al0rvai" path="res://ui/text_helper.gd" id="6_hj263"] + +[node name="Closeup小猫灵牌" type="CanvasLayer"] +script = ExtResource("1_pl6vt") + +[node name="BG" type="TextureRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="遮罩" type="TextureRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +texture = ExtResource("2_ap5lo") + +[node name="ContentInspector" parent="." instance=ExtResource("3_4x10w")] + +[node name="遮罩" type="TextureRect" parent="ContentInspector"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +texture = ExtResource("5_42tbg") + +[node name="Label" type="Label" parent="ContentInspector/遮罩"] +custom_minimum_size = Vector2(180, 0) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -60.0 +offset_top = -15.5 +offset_right = 60.0 +offset_bottom = 15.5 +grow_horizontal = 2 +grow_vertical = 2 +vertical_alignment = 1 +autowrap_mode = 3 +script = ExtResource("6_hj263") diff --git a/scene/ground/script/c04/s07_closeup幻灯片游戏.gd b/scene/ground/script/c04/s07_closeup幻灯片游戏.gd new file mode 100644 index 00000000..00b04ceb --- /dev/null +++ b/scene/ground/script/c04/s07_closeup幻灯片游戏.gd @@ -0,0 +1,7 @@ +extends CanvasLayer + +@warning_ignore("unused_signal") +signal exit(arg) + +func _ready() -> void: + layer = GlobalConfig.CANVAS_LAYER_LITTLE_GAME diff --git a/scene/ground/script/c04/s07_closeup幻灯片游戏.gd.uid b/scene/ground/script/c04/s07_closeup幻灯片游戏.gd.uid new file mode 100644 index 00000000..ba217f01 --- /dev/null +++ b/scene/ground/script/c04/s07_closeup幻灯片游戏.gd.uid @@ -0,0 +1 @@ +uid://cc345qoff1fks diff --git a/scene/ground/script/c04/s07_closeup幻灯片游戏.tscn b/scene/ground/script/c04/s07_closeup幻灯片游戏.tscn new file mode 100644 index 00000000..289f337a --- /dev/null +++ b/scene/ground/script/c04/s07_closeup幻灯片游戏.tscn @@ -0,0 +1,65 @@ +[gd_scene load_steps=7 format=3 uid="uid://d3als2ou8psp4"] + +[ext_resource type="Script" uid="uid://cc345qoff1fks" path="res://scene/ground/script/c04/s07_closeup幻灯片游戏.gd" id="1_rhwky"] +[ext_resource type="Texture2D" uid="uid://cbql1i4hblmt1" path="res://asset/art/ui/遮罩/inspect特写通用遮罩.png" id="2_n48xx"] +[ext_resource type="PackedScene" uid="uid://dmysq4sxx8iqh" path="res://scene/entity/ux/content_inspector.tscn" id="3_m4bds"] +[ext_resource type="Script" uid="uid://0dcbk75cd5pl" path="res://scene/entity/ux/content_inspector.gd" id="4_0ys1q"] +[ext_resource type="Texture2D" uid="uid://f186lvt5y2ql" path="res://asset/art/ui/遮罩/inspect背景遮罩.png" id="5_tomon"] +[ext_resource type="Script" uid="uid://dpocj5al0rvai" path="res://ui/text_helper.gd" id="6_xkl3x"] + +[node name="Closeup幻灯片游戏" type="CanvasLayer"] +script = ExtResource("1_rhwky") + +[node name="BG" type="TextureRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="遮罩" type="TextureRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +texture = ExtResource("2_n48xx") + +[node name="ContentInspector" type="Control" parent="." instance=ExtResource("3_m4bds")] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +script = ExtResource("4_0ys1q") + +[node name="遮罩" type="TextureRect" parent="ContentInspector"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +texture = ExtResource("5_tomon") + +[node name="Label" type="Label" parent="ContentInspector/遮罩"] +custom_minimum_size = Vector2(180, 0) +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -60.0 +offset_top = -15.5 +offset_right = 60.0 +offset_bottom = 15.5 +grow_horizontal = 2 +grow_vertical = 2 +vertical_alignment = 1 +autowrap_mode = 3 +script = ExtResource("6_xkl3x") diff --git a/scene/ground/script/c04/s08_closeup煮肉游戏.gd b/scene/ground/script/c04/s08_closeup煮肉游戏.gd index 00b04ceb..c6e7968e 100644 --- a/scene/ground/script/c04/s08_closeup煮肉游戏.gd +++ b/scene/ground/script/c04/s08_closeup煮肉游戏.gd @@ -3,5 +3,139 @@ extends CanvasLayer @warning_ignore("unused_signal") signal exit(arg) +@onready var draggable_spoon = %"Draggable勺" as Draggable2D +@onready var hover_meat = %"Hover肉" as HoverLightClickArea +@onready var hover_froth_arr: Array[HoverLightClickArea] = [%"Hover浮沫1", %"Hover浮沫2", %"Hover浮沫3", %"Hover浮沫4", %"Hover浮沫5", %"Hover浮沫6"] +var appeared_froth := [false, false, false, false, false, false] +var cleared_froth := [false, false, false, false, false, false] +var holding_spoon := false +var meat_has_put := false +var ready_to_take_meat := false + func _ready() -> void: layer = GlobalConfig.CANVAS_LAYER_LITTLE_GAME + for h in hover_froth_arr: + h.freezing = true + h.modulate.a = 0.0 + h.interacted.connect(_on_forth_interacted.bind(h)) + draggable_spoon.picked.connect(_on_spoon_picked) + draggable_spoon.dropped.connect(_on_spoon_dropped) + + # 提示 + await Util.wait(0.5) + SceneManager.pop_center_notification("ui_center_notify_c04放肉煮肉") + + +func _on_spoon_picked(_node) -> void: + holding_spoon = true + # 允许清理泡沫 + for i in len(appeared_froth): + if appeared_froth[i] and not cleared_froth[i]: + var h = hover_froth_arr[i] + h.freezing = false + + +func _on_spoon_dropped(_node) -> void: + # 不可以放下 + draggable_spoon.force_hold() + if ready_to_take_meat: + if hover_meat.is_focused(): + hover_meat.freezing = true + # 增加肉的 z + hover_meat.z_index += 1 + wave_spoon() + var tween = create_tween() + tween.tween_property(draggable_spoon, "modulate:a", 0.0, 2.0) + await tween.finished + draggable_spoon.hide() + # 取肉 + SceneManager.disable_prop_item("prop_新鲜的肉") + SceneManager.enable_prop_item("prop_煮熟的肉") + EventManager.set_stage("c04_stew_meat", 1) + hover_meat.hide() + exit.emit(true) + else: + for h in hover_froth_arr: + if h.is_focused(): + var id = hover_froth_arr.find(h) + if appeared_froth[id] and not cleared_froth[id]: + _on_forth_interacted(h) + + +func _on_forth_interacted(h: HoverLightClickArea) -> void: + # 去除浮沫 + h.freezing = true + cleared_froth[hover_froth_arr.find(h)] = true + var tween = create_tween() + tween.tween_property(h, "modulate:a", 0.0, 3.0) + wave_spoon(h) + # 检查是否全部清除 + var all_cleared = true + for c in cleared_froth: + if not c: + all_cleared = false + break + if all_cleared: + _on_all_froth_cleared() + + +func wave_spoon(forth = null) -> void: + draggable_spoon.freezing = true + # weave spoon + var tween = create_tween() + tween.tween_property(draggable_spoon, "rotation", 0.3, 0.5) + tween.parallel().tween_property(draggable_spoon, "position", Vector2(5.0, 25.0), 0.5).as_relative() + if forth: + # 增加 froth z + tween.tween_callback(func(): forth.z_index += 1) + tween.tween_property(draggable_spoon, "rotation", -0.2, 0.5) + tween.parallel().tween_property(draggable_spoon, "position", Vector2(-5.0, -20.0), 0.5).as_relative() + tween.tween_property(draggable_spoon, "rotation", 0.3, 0.5) + tween.parallel().tween_property(draggable_spoon, "position", Vector2(0.0, -5.0), 0.5).as_relative() + await tween.finished + draggable_spoon.freezing = false + + +func _on_all_froth_cleared() -> void: + await Util.wait(3.0) + hover_meat.freezing = false + ready_to_take_meat = true + + +func _unhandled_input(event: InputEvent) -> void: + if event.is_action_pressed("interact"): + get_viewport().set_input_as_handled() + if not meat_has_put: + if SceneManager.get_current_prop() == "prop_新鲜的肉": + _on_put_meat() + else: + SceneManager.get_prop_hud().on_toggle_invalid_prop() + elif event.is_action_pressed("cancel"): + get_viewport().set_input_as_handled() + # 恢复道具 + SceneManager.reset_temp_disabled_props() + + +func _on_put_meat() -> void: + meat_has_put = true + $"AnimationPlayer".play("meat_floating") + # 暂时禁用 + SceneManager.disable_prop_item_temp("prop_新鲜的肉") + hover_meat.show() + # 煮一会 + SceneManager.pop_debug_dialog_info("音效", "放入鲜肉煮肉") + # 生肉缓慢消失 + create_tween().tween_property(%"生肉", "modulate:a", 0.0, 8.0) + await Util.wait(3.0) + # 允许用勺子 + draggable_spoon.freezing = false + # 浮末逐个出现 + var tween + for i in [0,3,2,4,1,5]: + tween = create_tween() + var h = hover_froth_arr[i] + tween.tween_property(h, "modulate:a", 1.0, 2.0) + await tween.finished + appeared_froth[i] = true + if holding_spoon: + h.freezing = false diff --git a/scene/ground/script/c04/s08_closeup煮肉游戏.tscn b/scene/ground/script/c04/s08_closeup煮肉游戏.tscn index e9f30211..32acb292 100644 --- a/scene/ground/script/c04/s08_closeup煮肉游戏.tscn +++ b/scene/ground/script/c04/s08_closeup煮肉游戏.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://bb6rbriqc27pl"] +[gd_scene load_steps=19 format=3 uid="uid://bb6rbriqc27pl"] [ext_resource type="Script" uid="uid://chijvjkm2xr5" path="res://scene/ground/script/c04/s08_closeup煮肉游戏.gd" id="1_3lt4f"] [ext_resource type="Texture2D" uid="uid://cbql1i4hblmt1" path="res://asset/art/ui/遮罩/inspect特写通用遮罩.png" id="2_e5y6x"] @@ -6,10 +6,80 @@ [ext_resource type="Script" uid="uid://cphfob11f7atx" path="res://addons/property-inspector/pro_animation_sprite2d/pro_animated_sprite.gd" id="4_mjthy"] [ext_resource type="PackedScene" uid="uid://bkk1rxx36ghrl" path="res://scene/entity/ux/hover_light_click_area.tscn" id="5_3lt4f"] [ext_resource type="SpriteFrames" uid="uid://bbey3pnvbxqmr" path="res://asset/art/gif/c04_煮肉游戏/c04_煮肉游戏_frames.tres" id="5_mjthy"] +[ext_resource type="PackedScene" uid="uid://bg7oictr1wgex" path="res://scene/little_game/general/draggable.tscn" id="6_e5y6x"] +[ext_resource type="Texture2D" uid="uid://npw1uvoext2e" path="res://asset/art/gif/c04_煮肉游戏/铲子拿起.png" id="7_6kvwg"] +[ext_resource type="Texture2D" uid="uid://d3l0aa2083tt" path="res://asset/art/gif/c04_煮肉游戏/煮熟的肉道具.png" id="7_v54bw"] +[ext_resource type="Texture2D" uid="uid://d1olbwqq8j3oi" path="res://asset/art/gif/c04_煮肉游戏/新鲜的肉场景.png" id="8_e616x"] + +[sub_resource type="Animation" id="Animation_v54bw"] +resource_name = "meat_floating" +length = 5.0 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Hover肉:position") +tracks/0/interp = 2 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1.46667, 3.13333), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 0, +"values": [Vector2(292, 132), Vector2(293, 130), Vector2(291, 134)] +} + +[sub_resource type="Animation" id="Animation_e616x"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Hover肉:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(292, 135)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_e616x"] +_data = { +&"RESET": SubResource("Animation_e616x"), +&"meat_floating": SubResource("Animation_v54bw") +} + +[sub_resource type="Gradient" id="Gradient_gcb2q"] +offsets = PackedFloat32Array(1) +colors = PackedColorArray(1, 1, 1, 1) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_e616x"] +gradient = SubResource("Gradient_gcb2q") +width = 256 +height = 128 + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_v54bw"] +gradient = SubResource("Gradient_gcb2q") +width = 156 +height = 128 + +[sub_resource type="Gradient" id="Gradient_6kvwg"] +offsets = PackedFloat32Array(1) +colors = PackedColorArray(1, 1, 1, 1) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_gcb2q"] +gradient = SubResource("Gradient_6kvwg") +width = 256 +height = 256 [node name="Closeup煮肉游戏" type="CanvasLayer"] script = ExtResource("1_3lt4f") +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +&"": SubResource("AnimationLibrary_e616x") +} + [node name="Pro锅" type="AnimatedSprite2D" parent="."] sprite_frames = ExtResource("5_mjthy") animation = &"煮肉游戏_沸水" @@ -17,56 +87,177 @@ centered = false script = ExtResource("4_mjthy") metadata/_custom_type_script = "uid://cphfob11f7atx" +[node name="Hover肉" parent="." instance=ExtResource("5_3lt4f")] +unique_name_in_owner = true +visible = false +position = Vector2(292, 135) +freezing = true + +[node name="PointLight2D" type="PointLight2D" parent="Hover肉"] +energy = 0.4 +range_layer_max = 10 +range_item_cull_mask = 65536 +texture = SubResource("GradientTexture2D_e616x") + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hover肉"] +polygon = PackedVector2Array(-12.3, -30.5, -42.7, -30.5, -81.6, -21.5, -85.3, -21.5, -91.5, -15.3, -91.5, 3.1, -84.5, 9.3, -84.5, 11.6, -58.4, 10.5, -47.8, 10.5, -15.8, 20.5, -11.9, 20.5, 9.7, 30.5, 61.6, 30.5, 77.5, 17.4, 77.5, 15.8, 86, 12.5, 89.7, 12.5, 91.5, 8.9, 91.5, -7.3, 88.5, -10.3, 88.5, -12.2, 9.7, -25.5, 2.8, -25.5) + +[node name="熟肉" type="Sprite2D" parent="Hover肉"] +light_mask = 65537 +texture = ExtResource("7_v54bw") + +[node name="生肉" type="Sprite2D" parent="Hover肉"] +unique_name_in_owner = true +light_mask = 65537 +texture = ExtResource("8_e616x") + [node name="Node浮末" type="Node2D" parent="."] -[node name="Pro浮沫6" type="AnimatedSprite2D" parent="Node浮末"] -position = Vector2(341, 171) +[node name="Hover浮沫1" parent="Node浮末" instance=ExtResource("5_3lt4f")] +unique_name_in_owner = true +position = Vector2(216, 112) + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Node浮末/Hover浮沫1"] +polygon = PackedVector2Array(44.5, -33.5, 44.5, -32.3, 22.3, -29.5, 18.1, -29.5, -6.9, -19.5, -10.1, -19.5, -23, -11.5, -27.3, -11.5, -45.3, 6.5, -46.6, 6.5, -53.5, 16.9, -53.5, 20.7, -59.3, 26.5, -60.8, 26.5, -61.9, 29, -59.5, 31.3, -59.5, 33.8, -37.2, 30.5, -35.9, 30.5, -23, 21.5, -20.5, 21.5, -20.5, 13.9, -0.400002, 8.5, 3.3, 8.5, 13.5, -0.599998, 13.5, -1.4, 31.5, -11.3, 41.6, -13.7, 46, -11.5, 49.3, -11.5, 63.5, -25.7, 63.5, -28.5, 59.5, -31.5, 59.5, -33.5) + +[node name="Pro浮沫1" type="AnimatedSprite2D" parent="Node浮末/Hover浮沫1"] +light_mask = 1025 sprite_frames = ExtResource("3_sjb15") -animation = &"c03_肉沫06" -autoplay = "c03_肉沫06" +animation = &"c03_肉沫01" +autoplay = "c03_肉沫01" script = ExtResource("4_mjthy") metadata/_custom_type_script = "uid://cphfob11f7atx" -[node name="Pro浮沫5" type="AnimatedSprite2D" parent="Node浮末"] -position = Vector2(222, 164) -sprite_frames = ExtResource("3_sjb15") -animation = &"c03_肉沫05" -autoplay = "c03_肉沫05" -script = ExtResource("4_mjthy") -metadata/_custom_type_script = "uid://cphfob11f7atx" +[node name="PointLight2D" type="PointLight2D" parent="Node浮末/Hover浮沫1"] +energy = 0.4 +range_layer_max = 10 +range_item_cull_mask = 1024 +texture = SubResource("GradientTexture2D_v54bw") -[node name="Pro浮沫4" type="AnimatedSprite2D" parent="Node浮末"] -position = Vector2(390, 153) -sprite_frames = ExtResource("3_sjb15") -animation = &"c03_肉沫04" -autoplay = "c03_肉沫04" -script = ExtResource("4_mjthy") -metadata/_custom_type_script = "uid://cphfob11f7atx" +[node name="Hover浮沫2" parent="Node浮末" instance=ExtResource("5_3lt4f")] +unique_name_in_owner = true +position = Vector2(302, 92) -[node name="Pro浮沫3" type="AnimatedSprite2D" parent="Node浮末"] -position = Vector2(367, 116) -sprite_frames = ExtResource("3_sjb15") -animation = &"c03_肉沫03" -autoplay = "c03_肉沫03" -script = ExtResource("4_mjthy") -metadata/_custom_type_script = "uid://cphfob11f7atx" +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Node浮末/Hover浮沫2"] +polygon = PackedVector2Array(-42.5, -13.6, -42.5, -12.4, -55.6, -11.5, -59.9, -11.5, -68.9, -7.5, -71.3, -7.5, -74.5, -4.3, -74.5, 1.8, -60.5, 7.7, -60.5, 10.1, -46.9, 6.3, -45.1, 7.5, -40.7, 7.5, -36.5, 3.3, -30.6, 2.3, -28.5, 3.6, -28.5, 6.1, -15.4, 2.5, -14.2, 2.5, -9.5, 5.6, -9.5, 7.5, -4.5, 7.5, -4.5, 8.5, 7.9, 8.5, 19.2, 3.3, 20.9, 4.5, 23.9, 4.5, 31.3, 1.7, 32.5, 4, 32.5, 7.3, 40.8, 4.5, 42.5, 6.9, 42.5, 8.8, 45, 9.9, 47.1, 7.6, 53.5, 11.6, 53.5, 12.8, 56, 13.9, 59.3, 10.5, 60.5, 13, 60.5, 15.5, 70.7, 15.5, 72.7, 11.5, 74.5, 11.5, 74.5, 3.3, 65.5, -1.7, 65.5, -3.1, 36.5, -10.1, 36.5, -11.4) -[node name="Pro浮沫2" type="AnimatedSprite2D" parent="Node浮末"] -position = Vector2(304, 94) +[node name="PointLight2D" type="PointLight2D" parent="Node浮末/Hover浮沫2"] +energy = 0.4 +range_layer_max = 10 +range_item_cull_mask = 2048 +texture = SubResource("GradientTexture2D_v54bw") + +[node name="Pro浮沫2" type="AnimatedSprite2D" parent="Node浮末/Hover浮沫2"] +light_mask = 2049 sprite_frames = ExtResource("3_sjb15") animation = &"c03_肉沫02" autoplay = "c03_肉沫02" script = ExtResource("4_mjthy") metadata/_custom_type_script = "uid://cphfob11f7atx" -[node name="Pro浮沫1" type="AnimatedSprite2D" parent="Node浮末"] -position = Vector2(215, 116) +[node name="Hover浮沫3" parent="Node浮末" instance=ExtResource("5_3lt4f")] +unique_name_in_owner = true +position = Vector2(371, 115) + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Node浮末/Hover浮沫3"] +polygon = PackedVector2Array(-48.5, -35.1, -48.5, -32.8, -50.3, -31, -51.7, -31, -52.8, -28.9, -50.5, -25.4, -50.5, -23.3, -37.5, -21.3, -37.5, -20.7, -35, -19.6, -31.7, -23, -30.1, -23, -23.1, -18, -21.5, -18, -21.5, -13.7, -19, -12.6, -16.2, -15.6, -13.5, -12.3, -13.5, -10, -5.4, -10, 4.5, 0.799999, 4.5, 3.3, 10, 2.5, 9.5, 3, 9.5, 8.9, 19.5, 17.8, 19.5, 19.3, 22, 20.4, 24.3, 18, 25.5, 18, 21.5, 23.3, 21.5, 24, 18.5, 24, 15.5, 28, 12.8, 28, 15.5, 37, 15.5, 40.8, 29.8, 36, 36.3, 36, 49.4, 24, 51.2, 24, 52.2, 18, 54.7, 18, 49.5, 7.5, 49.5, 5, 29.5, -11, 29.5, -12.3, -0.5, -25.3, -0.5, -26.5, -21.5, -32.5, -21.5, -33.9) + +[node name="PointLight2D" type="PointLight2D" parent="Node浮末/Hover浮沫3"] +energy = 0.4 +range_layer_max = 10 +range_item_cull_mask = 4096 +texture = SubResource("GradientTexture2D_v54bw") + +[node name="Pro浮沫3" type="AnimatedSprite2D" parent="Node浮末/Hover浮沫3"] +light_mask = 4097 sprite_frames = ExtResource("3_sjb15") -animation = &"c03_肉沫01" -autoplay = "c03_肉沫01" +animation = &"c03_肉沫03" +autoplay = "c03_肉沫03" script = ExtResource("4_mjthy") metadata/_custom_type_script = "uid://cphfob11f7atx" +[node name="Hover浮沫4" parent="Node浮末" instance=ExtResource("5_3lt4f")] +unique_name_in_owner = true +position = Vector2(388, 154) + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Node浮末/Hover浮沫4"] +polygon = PackedVector2Array(8, -12, 8, -10, -0.599998, -3.4, -3.8, -4, -7, -4, -7, 1, -14.7, 1, -22.7, 7, -26.2, 7, -23, 13.4, -23, 16.6, -9, 12.7, -6, 14.2, -6, 17.2, 0.5, 14, 5.8, 14, 16.8, 3, 21.8, 3, 25.8, -1, 27.3, -1, 28.4, -3.5, 22, -9.9, 22, -12) + +[node name="PointLight2D" type="PointLight2D" parent="Node浮末/Hover浮沫4"] +energy = 0.4 +range_layer_max = 10 +range_item_cull_mask = 8192 +texture = SubResource("GradientTexture2D_v54bw") + +[node name="Pro浮沫4" type="AnimatedSprite2D" parent="Node浮末/Hover浮沫4"] +light_mask = 8193 +sprite_frames = ExtResource("3_sjb15") +animation = &"c03_肉沫04" +autoplay = "c03_肉沫04" +script = ExtResource("4_mjthy") +metadata/_custom_type_script = "uid://cphfob11f7atx" + +[node name="Hover浮沫5" parent="Node浮末" instance=ExtResource("5_3lt4f")] +unique_name_in_owner = true +position = Vector2(214, 161) + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Node浮末/Hover浮沫5"] +polygon = PackedVector2Array(-36, -16.4, -36, -14, -44, -10.9, -44, -6.5, -33, 1.5, -33, 2.9, -21, 6.9, -21, 8.1, 0, 13, 0, 14.7, 15.2, 13.5, 18, 15.5, 18, 17.4, 33, 18.3, 35.3, 19.8, 40.7, 15.5, 42.2, 15.5, 43.3, 13.3, 40, 8.8, 40, 6.8, 32.2, 5.5, 29.6, 5.5, 23, 1.3, 23, -0.6, 4.9, 0.5, 3.6, 0.5, -1.7, -2.8, -0.5, -3.5, 1.3, -3.5, 2.4, -6, -1, -9.4, -1, -10.8, -3.5, -11.9, -7.7, -7.8, -14, -12.5, -14, -15.7, -20.5, -12.5, -25.6, -12.5) + +[node name="PointLight2D" type="PointLight2D" parent="Node浮末/Hover浮沫5"] +energy = 0.4 +range_layer_max = 10 +range_item_cull_mask = 16384 +texture = SubResource("GradientTexture2D_v54bw") + +[node name="Pro浮沫5" type="AnimatedSprite2D" parent="Node浮末/Hover浮沫5"] +light_mask = 16385 +sprite_frames = ExtResource("3_sjb15") +animation = &"c03_肉沫05" +autoplay = "c03_肉沫05" +script = ExtResource("4_mjthy") +metadata/_custom_type_script = "uid://cphfob11f7atx" + +[node name="Hover浮沫6" parent="Node浮末" instance=ExtResource("5_3lt4f")] +unique_name_in_owner = true +position = Vector2(348, 170) + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Node浮末/Hover浮沫6"] +polygon = PackedVector2Array(13.5, -13.1, 13.5, -11, -1.2, -11, -12.5, -2, -12.5, -1.3, -27, 6, -28.8, 6, -29.9, 8.5, -27.5, 10.8, -27.5, 13.1, 2.6, 12, 4.7, 12, 6.7, 8, 7.7, 8, 8.6, 6.1, 9.5, 6.8, 9.5, 9.8, 20.8, 6, 25.6, 6, 30.5, -1.4, 30.5, -5.3) + +[node name="PointLight2D" type="PointLight2D" parent="Node浮末/Hover浮沫6"] +energy = 0.4 +range_layer_max = 10 +range_item_cull_mask = 32768 +texture = SubResource("GradientTexture2D_v54bw") + +[node name="Pro浮沫6" type="AnimatedSprite2D" parent="Node浮末/Hover浮沫6"] +light_mask = 32769 +sprite_frames = ExtResource("3_sjb15") +animation = &"c03_肉沫06" +autoplay = "c03_肉沫06" +script = ExtResource("4_mjthy") +metadata/_custom_type_script = "uid://cphfob11f7atx" + +[node name="Draggable勺" parent="Node浮末" instance=ExtResource("6_e5y6x")] +unique_name_in_owner = true +position = Vector2(503, 193) +rotation = 0.987886 +scale = Vector2(1, 1) +sprite_offset = Vector2(0, 100) +freezing = true +texture = ExtResource("7_6kvwg") + +[node name="PointLight2D" type="PointLight2D" parent="Node浮末/Draggable勺"] +position = Vector2(0, 100) +range_layer_max = 10 +range_item_cull_mask = 128 +texture = SubResource("GradientTexture2D_gcb2q") + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Node浮末/Draggable勺"] +position = Vector2(0, 100) +polygon = PackedVector2Array(11.5, -114.5, -12.7, -114.5, -20.2, -109.5, -22.4, -109.5, -34.4, -96.5, -35.8, -96.5, -38.8, -89.5, -40.2, -89.5, -42.5, -74, -42.5, -55.6, -41.5, -50.1, -41.5, -46.9, -33.5, -34, -33.5, -31.4, -10.1, -16.5, -8.7, -16.5, -12.5, 24.4, -12.5, 34.5, -17, 53.5, -18.5, 53.5, -18.5, 109.3, -13.3, 114.5, 9.1, 114.5, 13.4, 109.5, 15.5, 109.5, 15.5, 34.7, 12.5, 31.7, 12.5, -15.1, 14.5, -20.1, 14.5, -21.5, 20.1, -25.5, 22.5, -25.5, 28.5, -33.5, 29.8, -33.5, 38.9, -55.5, 40.8, -55.5, 36.5, -82.8, 36.5, -87.1, 28.5, -100.1, 28.5, -102.5) + [node name="HoverLightClickArea" parent="." instance=ExtResource("5_3lt4f")] [node name="CollisionShape2D" type="CollisionShape2D" parent="HoverLightClickArea"]