This commit is contained in:
cakipaul 2025-06-17 13:01:19 +08:00
parent fffd53a267
commit 863bdaf0b6
55 changed files with 379 additions and 34 deletions

View File

@ -58,15 +58,15 @@
[ext_resource type="Texture2D" uid="uid://bgn8o0eal45rq" path="res://asset/art/gif/c02_盒子猫/猫钻进盒子/23.png" id="56_d08hu"] [ext_resource type="Texture2D" uid="uid://bgn8o0eal45rq" path="res://asset/art/gif/c02_盒子猫/猫钻进盒子/23.png" id="56_d08hu"]
[ext_resource type="Texture2D" uid="uid://cgnn3ohqr52uf" path="res://asset/art/gif/c02_盒子猫/盒子猫呼吸/0.png" id="57_jiyar"] [ext_resource type="Texture2D" uid="uid://cgnn3ohqr52uf" path="res://asset/art/gif/c02_盒子猫/盒子猫呼吸/0.png" id="57_jiyar"]
[ext_resource type="Texture2D" uid="uid://bn1v0rbsayjuf" path="res://asset/art/gif/c02_盒子猫/盒子猫呼吸/1.png" id="58_n50tg"] [ext_resource type="Texture2D" uid="uid://bn1v0rbsayjuf" path="res://asset/art/gif/c02_盒子猫/盒子猫呼吸/1.png" id="58_n50tg"]
[ext_resource type="Texture2D" uid="uid://b3piexlfdu7cc" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/0.png" id="59_rmfur"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/0.png" id="59_cgxom"]
[ext_resource type="Texture2D" uid="uid://bedsecuscfsu7" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/1.png" id="60_6o7i3"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/1.png" id="60_4rdjd"]
[ext_resource type="Texture2D" uid="uid://1mtlgg1y5530" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/2.png" id="61_op3lx"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/2.png" id="61_k62q3"]
[ext_resource type="Texture2D" uid="uid://dqmjk8do1yyao" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/3.png" id="62_ipxgr"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/3.png" id="62_arpr7"]
[ext_resource type="Texture2D" uid="uid://dnfn5wd7wxem7" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/4.png" id="63_7w3n4"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/4.png" id="63_gruke"]
[ext_resource type="Texture2D" uid="uid://baalnucyg2nv7" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/5.png" id="64_dtscl"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/5.png" id="64_d08hu"]
[ext_resource type="Texture2D" uid="uid://b157f8j4mct6i" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/6.png" id="65_0y53w"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/6.png" id="65_a8b84"]
[ext_resource type="Texture2D" uid="uid://e4t0p0wklkge" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/7.png" id="66_cgxom"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/7.png" id="66_2juxf"]
[ext_resource type="Texture2D" uid="uid://dx4ip6ln68xmn" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门_r/8.png" id="67_4rdjd"] [ext_resource type="Texture2D" path="res://asset/art/gif/c02_盒子猫/盒子猫敲门/8.png" id="67_a2nci"]
[ext_resource type="Texture2D" uid="uid://55rmstkju630" path="res://asset/art/gif/c02_盒子猫/盒子猫走路/0.png" id="68_cgxom"] [ext_resource type="Texture2D" uid="uid://55rmstkju630" path="res://asset/art/gif/c02_盒子猫/盒子猫走路/0.png" id="68_cgxom"]
[ext_resource type="Texture2D" uid="uid://b2dt0032711li" path="res://asset/art/gif/c02_盒子猫/盒子猫走路/1.png" id="69_4rdjd"] [ext_resource type="Texture2D" uid="uid://b2dt0032711li" path="res://asset/art/gif/c02_盒子猫/盒子猫走路/1.png" id="69_4rdjd"]
[ext_resource type="Texture2D" uid="uid://b7ewg60u7s2d" path="res://asset/art/gif/c02_盒子猫/盒子猫走路/2.png" id="70_k62q3"] [ext_resource type="Texture2D" uid="uid://b7ewg60u7s2d" path="res://asset/art/gif/c02_盒子猫/盒子猫走路/2.png" id="70_k62q3"]
@ -278,31 +278,31 @@ animations = [{
}, { }, {
"frames": [{ "frames": [{
"duration": 30.0, "duration": 30.0,
"texture": ExtResource("59_rmfur") "texture": ExtResource("59_cgxom")
}, { }, {
"duration": 6.0, "duration": 6.0,
"texture": ExtResource("60_6o7i3") "texture": ExtResource("60_4rdjd")
}, { }, {
"duration": 15.0, "duration": 15.0,
"texture": ExtResource("61_op3lx") "texture": ExtResource("61_k62q3")
}, { }, {
"duration": 15.0, "duration": 15.0,
"texture": ExtResource("62_ipxgr") "texture": ExtResource("62_arpr7")
}, { }, {
"duration": 15.0, "duration": 15.0,
"texture": ExtResource("63_7w3n4") "texture": ExtResource("63_gruke")
}, { }, {
"duration": 15.0, "duration": 15.0,
"texture": ExtResource("64_dtscl") "texture": ExtResource("64_d08hu")
}, { }, {
"duration": 15.0, "duration": 15.0,
"texture": ExtResource("65_0y53w") "texture": ExtResource("65_a8b84")
}, { }, {
"duration": 15.0, "duration": 15.0,
"texture": ExtResource("66_cgxom") "texture": ExtResource("66_2juxf")
}, { }, {
"duration": 30.0, "duration": 30.0,
"texture": ExtResource("67_4rdjd") "texture": ExtResource("67_a2nci")
}], }],
"loop": true, "loop": true,
"name": &"盒子猫敲门", "name": &"盒子猫敲门",

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c1x6liekb0xvr"
path="res://.godot/imported/0.png-e788aceb172b8511efb38adce3ac2669.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/0.png"
dest_files=["res://.godot/imported/0.png-e788aceb172b8511efb38adce3ac2669.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dv4bhy4er3gxe"
path="res://.godot/imported/1.png-e6b2e43faa33f502dbfd8c0989650ba9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/1.png"
dest_files=["res://.godot/imported/1.png-e6b2e43faa33f502dbfd8c0989650ba9.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://2t2nb8pyvy1j"
path="res://.godot/imported/2.png-8fe4f05e0e1b9656f88c29e193d4d6c1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/2.png"
dest_files=["res://.godot/imported/2.png-8fe4f05e0e1b9656f88c29e193d4d6c1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cwohcgp8ubcoa"
path="res://.godot/imported/3.png-05d5bdc388e3301b367d60199210f41b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/3.png"
dest_files=["res://.godot/imported/3.png-05d5bdc388e3301b367d60199210f41b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://blmilkq5fjgub"
path="res://.godot/imported/4.png-b9850da5826c73bb460f5c286f75097d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/4.png"
dest_files=["res://.godot/imported/4.png-b9850da5826c73bb460f5c286f75097d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://t2v0x0rig3mc"
path="res://.godot/imported/5.png-5a110813011dce2c0da232cab25821ae.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/5.png"
dest_files=["res://.godot/imported/5.png-5a110813011dce2c0da232cab25821ae.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cexxs4gk8hc3h"
path="res://.godot/imported/6.png-0729d42645d62856d291568400feedce.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/6.png"
dest_files=["res://.godot/imported/6.png-0729d42645d62856d291568400feedce.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://u74kcr4q4n10"
path="res://.godot/imported/7.png-581521c3ef78226e7df134bd975f5737.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/7.png"
dest_files=["res://.godot/imported/7.png-581521c3ef78226e7df134bd975f5737.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b2yu0ipxwwvpb"
path="res://.godot/imported/8.png-c69e217e9a3840c8b2930751602790e8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://asset/art/gif/c02_盒子猫/盒子猫敲门/8.png"
dest_files=["res://.godot/imported/8.png-c69e217e9a3840c8b2930751602790e8.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,6 +1,7 @@
[remap] [remap]
importer="dialogue_manager_compiler_14" importer="dialogue_manager"
importer_version=15
type="Resource" type="Resource"
uid="uid://ckaq073w1lsom" uid="uid://ckaq073w1lsom"
path="res://.godot/imported/c01.dialogue-b05ed36dc2d9792d1c47ce77d6a9f318.tres" path="res://.godot/imported/c01.dialogue-b05ed36dc2d9792d1c47ce77d6a9f318.tres"

View File

@ -1,6 +1,7 @@
[remap] [remap]
importer="dialogue_manager_compiler_14" importer="dialogue_manager"
importer_version=15
type="Resource" type="Resource"
uid="uid://b66v5hsf3tdox" uid="uid://b66v5hsf3tdox"
path="res://.godot/imported/c03.dialogue-c0384ecbb52edd7836345e985eb72b38.tres" path="res://.godot/imported/c03.dialogue-c0384ecbb52edd7836345e985eb72b38.tres"

View File

@ -1,6 +1,7 @@
[remap] [remap]
importer="dialogue_manager_compiler_14" importer="dialogue_manager"
importer_version=15
type="Resource" type="Resource"
uid="uid://cthsrdkrseijb" uid="uid://cthsrdkrseijb"
path="res://.godot/imported/c04.dialogue-c094c22b3c3a3667c042516fadd04a57.tres" path="res://.godot/imported/c04.dialogue-c094c22b3c3a3667c042516fadd04a57.tres"

View File

@ -1,6 +1,7 @@
[remap] [remap]
importer="dialogue_manager_compiler_14" importer="dialogue_manager"
importer_version=15
type="Resource" type="Resource"
uid="uid://c2em7wb623pd7" uid="uid://c2em7wb623pd7"
path="res://.godot/imported/c05.dialogue-de8e66d65fcfff540deb26ce3c92b0a4.tres" path="res://.godot/imported/c05.dialogue-de8e66d65fcfff540deb26ce3c92b0a4.tres"

View File

@ -1,6 +1,7 @@
[remap] [remap]
importer="dialogue_manager_compiler_14" importer="dialogue_manager"
importer_version=15
type="Resource" type="Resource"
uid="uid://c1bkhblw88ls0" uid="uid://c1bkhblw88ls0"
path="res://.godot/imported/c06.dialogue-f47fb4a55575ee069ed7231cadcef83f.tres" path="res://.godot/imported/c06.dialogue-f47fb4a55575ee069ed7231cadcef83f.tres"

View File

@ -1,6 +1,7 @@
[remap] [remap]
importer="dialogue_manager_compiler_14" importer="dialogue_manager"
importer_version=15
type="Resource" type="Resource"
uid="uid://dwykrbeikrpw1" uid="uid://dwykrbeikrpw1"
path="res://.godot/imported/inspect_content.dialogue-09f657f194b4dd194c6513cd424f3654.tres" path="res://.godot/imported/inspect_content.dialogue-09f657f194b4dd194c6513cd424f3654.tres"

View File

@ -1,6 +1,7 @@
[remap] [remap]
importer="dialogue_manager_compiler_14" importer="dialogue_manager"
importer_version=15
type="Resource" type="Resource"
uid="uid://cni46vt7glkes" uid="uid://cni46vt7glkes"
path="res://.godot/imported/npc.dialogue-359f1bec844cb0f204bacb54e674f48b.tres" path="res://.godot/imported/npc.dialogue-359f1bec844cb0f204bacb54e674f48b.tres"

View File

@ -42,5 +42,5 @@ extends Node
# pass # pass
func prop_interacted(name, prop_key, interacted_times) -> void: func prop_interacted(e_name, prop_key, interacted_times) -> void:
print("Event: %s interacted with %s. total times: %s" % [name, prop_key, interacted_times]) print("Event: %s interacted with %s. total times: %s" % [e_name, prop_key, interacted_times])

View File

@ -87,7 +87,7 @@ func _reset_sign_testure_to_prop():
# 根据当前 prop调整 sign 所显示的 texture # 根据当前 prop调整 sign 所显示的 texture
func _set_sign_texture_to_prop(key): func _set_sign_texture_to_prop(_key):
if tried_times == 0: if tried_times == 0:
# 首次交互前 unrevealed # 首次交互前 unrevealed
sign_mark.sprite2d.texture = unrevealed_sign_texture sign_mark.sprite2d.texture = unrevealed_sign_texture

View File

@ -202,7 +202,7 @@ func _reset(_body):
# 根据当前 prop调整 sign 所显示的 texture # 根据当前 prop调整 sign 所显示的 texture
func _set_sign_texture_to_prop(key): func _set_sign_texture_to_prop(_key):
# if not prop_key or prop_key == key: # if not prop_key or prop_key == key:
# sign_mark.sprite2d.texture = matched_sign_texture # sign_mark.sprite2d.texture = matched_sign_texture
# else: # else:

View File

@ -29,6 +29,8 @@ var footstep_type: String = "硬地面":
if is_node_ready(): if is_node_ready():
_load_footstep_audio() _load_footstep_audio()
# var main_scene := preload("res://scene/main.tscn") as PackedScene
@onready var player_line = %PlayerLine2D as Line2D @onready var player_line = %PlayerLine2D as Line2D
@onready var player = %MainPlayer as MainPlayer @onready var player = %MainPlayer as MainPlayer
@onready var directional_light := %DirectionalLight2D as DirectionalLight2D @onready var directional_light := %DirectionalLight2D as DirectionalLight2D
@ -96,7 +98,8 @@ func _restart_from_main():
ArchiveManager.load_config() ArchiveManager.load_config()
ArchiveManager.archive.current_scene = scene_name ArchiveManager.archive.current_scene = scene_name
ArchiveManager.archive.entrance_portal = default_portal ArchiveManager.archive.entrance_portal = default_portal
get_tree().change_scene_to_packed.call_deferred(preload("res://scene/main.tscn")) # get_tree().change_scene_to_packed.call_deferred(main_scene)
get_tree().change_scene_to_file.call_deferred("res://scene/main.tscn")
func _reset_player_y(): func _reset_player_y():

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=9 format=3 uid="uid://dayyx4jerj7io"] [gd_scene load_steps=10 format=3 uid="uid://dayyx4jerj7io"]
[ext_resource type="Script" uid="uid://bee4ot74k4wg2" path="res://scene/ground/ground.gd" id="1_0vrlo"] [ext_resource type="Script" uid="uid://bee4ot74k4wg2" path="res://scene/ground/ground.gd" id="1_0vrlo"]
[ext_resource type="PackedScene" uid="uid://dygvcmykn02n8" path="res://scene/main.tscn" id="2_6ggqv"]
[ext_resource type="PackedScene" uid="uid://cjhw5ecygrqty" path="res://scene/player/main_player.tscn" id="3_atha7"] [ext_resource type="PackedScene" uid="uid://cjhw5ecygrqty" path="res://scene/player/main_player.tscn" id="3_atha7"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="3_t73yw"] [ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="3_t73yw"]
[ext_resource type="PackedScene" uid="uid://cqkeegrcdjyg4" path="res://scene/ground/camera/camera_focus_marker.tscn" id="4_mgk0a"] [ext_resource type="PackedScene" uid="uid://cqkeegrcdjyg4" path="res://scene/ground/camera/camera_focus_marker.tscn" id="4_mgk0a"]
@ -23,6 +24,7 @@ height = 500
[node name="Ground" type="Node2D"] [node name="Ground" type="Node2D"]
script = ExtResource("1_0vrlo") script = ExtResource("1_0vrlo")
main_scene = ExtResource("2_6ggqv")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."] [node name="AnimationPlayer" type="AnimationPlayer" parent="."]

View File

@ -1,4 +1,3 @@
@tool
class_name GroundLoader extends Node2D class_name GroundLoader extends Node2D
@export_group("Scene") @export_group("Scene")

View File

@ -640,6 +640,7 @@ metadata/_edit_vertical_guides_ = [-45.0]
[node name="Ground" parent="." instance=ExtResource("1_ff4yb")] [node name="Ground" parent="." instance=ExtResource("1_ff4yb")]
position = Vector2(1, 0) position = Vector2(1, 0)
scene_name = "c01_s05" scene_name = "c01_s05"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {

View File

@ -116,6 +116,7 @@ metadata/_edit_horizontal_guides_ = [158.0, 91.0, 81.0]
[node name="Ground" parent="." instance=ExtResource("1_bitx7")] [node name="Ground" parent="." instance=ExtResource("1_bitx7")]
scene_name = "c01_s06" scene_name = "c01_s06"
player_y = 67 player_y = 67
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {

View File

@ -65,6 +65,7 @@ size = Vector2(25, 130)
[node name="Ground" parent="." instance=ExtResource("1_2vqpo")] [node name="Ground" parent="." instance=ExtResource("1_2vqpo")]
scene_name = "c01_s07" scene_name = "c01_s07"
player_y = 55 player_y = 55
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_dhaq4") script = ExtResource("2_dhaq4")

View File

@ -52,6 +52,7 @@ position = Vector2(1, 0)
[node name="Ground" parent="." instance=ExtResource("1_b3cca")] [node name="Ground" parent="." instance=ExtResource("1_b3cca")]
scene_name = "c01_s08" scene_name = "c01_s08"
player_y = 60 player_y = 60
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {
@ -73,6 +74,7 @@ metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="诡异环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"] [node name="诡异环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
stream = ExtResource("5_eerhd") stream = ExtResource("5_eerhd")
autoplay = true
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_p6k3c") script = ExtResource("4_p6k3c")
mode = "场景背景音" mode = "场景背景音"

View File

@ -59,6 +59,7 @@ metadata/_edit_horizontal_guides_ = [120.0, -120.0]
[node name="Ground" parent="." instance=ExtResource("1_mrwu5")] [node name="Ground" parent="." instance=ExtResource("1_mrwu5")]
scene_name = "c01_s09" scene_name = "c01_s09"
player_y = 55 player_y = 55
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_u053j") script = ExtResource("2_u053j")

View File

@ -14,6 +14,7 @@
[node name="Ground" parent="." instance=ExtResource("1_hhs2q")] [node name="Ground" parent="." instance=ExtResource("1_hhs2q")]
scene_name = "c01_s10" scene_name = "c01_s10"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_4kx83") script = ExtResource("2_4kx83")

View File

@ -147,6 +147,7 @@ metadata/_edit_horizontal_guides_ = [120.0]
[node name="Ground" parent="." instance=ExtResource("1_1sveo")] [node name="Ground" parent="." instance=ExtResource("1_1sveo")]
scene_name = "c01_s11" scene_name = "c01_s11"
player_y = 40 player_y = 40
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {

View File

@ -84,6 +84,7 @@ metadata/_edit_horizontal_guides_ = [88.0]
[node name="Ground" parent="." instance=ExtResource("1_llw14")] [node name="Ground" parent="." instance=ExtResource("1_llw14")]
scene_name = "c01_s12" scene_name = "c01_s12"
player_y = 60 player_y = 60
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {

View File

@ -28,6 +28,7 @@ size = Vector2(5, 70)
scene_name = "c02_s04" scene_name = "c02_s04"
default_portal = "right" default_portal = "right"
player_y = 60 player_y = 60
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_jyere") script = ExtResource("2_jyere")

View File

@ -56,6 +56,7 @@ fill_from = Vector2(0.5, 0.5)
[node name="Ground" parent="." instance=ExtResource("1_6w6et")] [node name="Ground" parent="." instance=ExtResource("1_6w6et")]
scene_name = "c02_s05" scene_name = "c02_s05"
player_y = 60 player_y = 60
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {

View File

@ -313,6 +313,7 @@ fill_to = Vector2(1, 1)
[node name="Ground" parent="." instance=ExtResource("1_qkymk")] [node name="Ground" parent="." instance=ExtResource("1_qkymk")]
scene_name = "c02_s06" scene_name = "c02_s06"
player_y = 60 player_y = 60
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {

View File

@ -19,6 +19,7 @@
[node name="Ground" parent="." instance=ExtResource("1_oao56")] [node name="Ground" parent="." instance=ExtResource("1_oao56")]
scene_name = "c02_s07" scene_name = "c02_s07"
player_y = 60 player_y = 60
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_t0s64") script = ExtResource("2_t0s64")

View File

@ -89,6 +89,7 @@ polygon = PackedVector2Array(541, 57, 540, 119, 717, 118, 717, 114, 545, 115)
scene_name = "c02_s08" scene_name = "c02_s08"
default_portal = "right" default_portal = "right"
footstep_type = "crawling" footstep_type = "crawling"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
libraries = { libraries = {

View File

@ -139,6 +139,7 @@ fill_to = Vector2(1, 1)
scene_name = "c02_s09" scene_name = "c02_s09"
default_portal = "right" default_portal = "right"
footstep_type = "crawling" footstep_type = "crawling"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_34a6f") script = ExtResource("2_34a6f")

View File

@ -73,6 +73,7 @@ metadata/_edit_horizontal_guides_ = [87.0, 86.0]
scene_name = "c02_s10" scene_name = "c02_s10"
default_portal = "1" default_portal = "1"
player_y = 60 player_y = 60
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_egtqi") script = ExtResource("2_egtqi")

View File

@ -12,6 +12,7 @@
scene_name = "c02_s12" scene_name = "c02_s12"
player_y = 85 player_y = 85
footstep_type = "盒子猫" footstep_type = "盒子猫"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_7ah3n") script = ExtResource("2_7ah3n")

View File

@ -14,6 +14,7 @@
[node name="Ground" parent="." instance=ExtResource("1_71lma")] [node name="Ground" parent="." instance=ExtResource("1_71lma")]
scene_name = "c02_s13" scene_name = "c02_s13"
footstep_type = "盒子猫" footstep_type = "盒子猫"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_w5nqu") script = ExtResource("2_w5nqu")

View File

@ -12,6 +12,7 @@
[node name="Ground" parent="." instance=ExtResource("1_cr1hi")] [node name="Ground" parent="." instance=ExtResource("1_cr1hi")]
scene_name = "c02_s14" scene_name = "c02_s14"
footstep_type = "盒子猫" footstep_type = "盒子猫"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_o47bv") script = ExtResource("2_o47bv")

View File

@ -13,6 +13,7 @@
scene_name = "c02_s15" scene_name = "c02_s15"
player_y = 60 player_y = 60
footstep_type = "盒子猫" footstep_type = "盒子猫"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_etqjj") script = ExtResource("2_etqjj")

View File

@ -13,6 +13,7 @@
scene_name = "c02_s16" scene_name = "c02_s16"
player_y = 85 player_y = 85
footstep_type = "盒子猫" footstep_type = "盒子猫"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_tmnwc") script = ExtResource("2_tmnwc")

View File

@ -12,6 +12,7 @@
scene_name = "c02_s17" scene_name = "c02_s17"
player_y = 85 player_y = 85
footstep_type = "盒子猫" footstep_type = "盒子猫"
main_scene = null
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_e436a") script = ExtResource("2_e436a")

View File

@ -1,5 +1,7 @@
extends Control extends Control
# var main_scene := preload("res://scene/main.tscn") as PackedScene
@onready var settings = $Settings @onready var settings = $Settings
@onready var animation_player = $AnimationPlayer as AnimationPlayer @onready var animation_player = $AnimationPlayer as AnimationPlayer
@onready var animation_root = $AnimationRoot as Control @onready var animation_root = $AnimationRoot as Control
@ -8,7 +10,6 @@ extends Control
@onready var resume_btn = %Resume as Button @onready var resume_btn = %Resume as Button
@onready var quit_btn = %Quit as Button @onready var quit_btn = %Quit as Button
var main_scene = preload("res://scene/main.tscn")
var animation_finished = false var animation_finished = false
@ -61,7 +62,8 @@ func _on_resume_pressed():
func _enter_main_scene(): func _enter_main_scene():
get_tree().change_scene_to_packed(main_scene) # get_tree().change_scene_to_packed.call_deferred(main_scene)
get_tree().change_scene_to_file.call_deferred("res://scene/main.tscn")
func _on_quit_pressed(): func _on_quit_pressed():

View File

@ -308,6 +308,7 @@ func _settle_plug_positions():
func _unhandled_input(event: InputEvent) -> void: func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("interact") and stage == 2: if event.is_action_pressed("interact") and stage == 2:
get_viewport().set_input_as_handled()
# 尝试使用道具 # 尝试使用道具
var hud = SceneManager.get_prop_hud() as PropHud var hud = SceneManager.get_prop_hud() as PropHud
var key = SceneManager.get_current_prop(false) var key = SceneManager.get_current_prop(false)
@ -317,3 +318,6 @@ func _unhandled_input(event: InputEvent) -> void:
else: else:
# hud 无效shaking # hud 无效shaking
hud.on_toggle_invalid_prop() hud.on_toggle_invalid_prop()
elif event.is_action_pressed("escape"):
get_viewport().set_input_as_handled()
exit.emit(false)