VibeSfx 替换为 Sfx

This commit is contained in:
cakipaul 2025-07-20 18:58:20 +08:00
parent aaa7dc26bb
commit 85475ff549
26 changed files with 288 additions and 122 deletions

View File

@ -4,6 +4,7 @@ extends CanvasLayer
func _ready() -> void:
AudioManager.process_mode = Node.PROCESS_MODE_PAUSABLE
SceneManager.toggle_pause_counter(true, "debugging")
layer = GlobalConfig.CANVAS_LAYER_SETTINGS
quit_debug_button.pressed.connect(_on_quit_debug_button_pressed)
@ -30,6 +31,7 @@ func _on_quit_debug_button_pressed() -> void:
func _exit_tree() -> void:
AudioManager.process_mode = Node.PROCESS_MODE_ALWAYS
SceneManager.toggle_pause_counter(false, "debugging")

View File

@ -67,6 +67,20 @@ func refresh_ui():
create_ui_items()
func _build_sfx_name(sfx: Sfx) -> String:
var parent_name = ""
var parent = sfx.get_parent()
while not parent_name and parent:
if parent and parent.get_script() and parent.get_script().get_global_name() in ignore_class_list:
parent_name = parent.name
else:
parent = parent.get_parent()
if parent_name:
return parent_name + " > " + sfx.name
else:
return sfx.name
func create_sfx_item(sfx_node: Node):
var item_container = VBoxContainer.new()
item_container.add_theme_constant_override("separation", 8)
@ -74,7 +88,7 @@ func create_sfx_item(sfx_node: Node):
# 节点名称标签
var name_label = Label.new()
name_label.text = sfx_node.name
name_label.text = _build_sfx_name(sfx_node)
name_label.add_theme_font_size_override("font_size", 14)
item_container.add_child(name_label)
@ -86,12 +100,22 @@ func create_sfx_item(sfx_node: Node):
var volume_vbox = VBoxContainer.new()
controls_hbox.add_child(volume_vbox)
var volume_title_hbox = HBoxContainer.new()
volume_vbox.add_child(volume_title_hbox)
var volume_label = Label.new()
volume_label.text = "音量 (dB)"
volume_vbox.add_child(volume_label)
var volume_hbox = HBoxContainer.new()
volume_vbox.add_child(volume_hbox)
volume_title_hbox.add_child(volume_label)
# 重置音量按钮
var reset_volumn_button = Button.new()
reset_volumn_button.text = "重置音量"
reset_volumn_button.pressed.connect(reset_volumn.bind(sfx_node))
volume_title_hbox.add_child(reset_volumn_button)
var volume_slider_hbox = HBoxContainer.new()
volume_vbox.add_child(volume_slider_hbox)
var volume_slider = HSlider.new()
volume_slider.min_value = -60.0
@ -99,20 +123,20 @@ func create_sfx_item(sfx_node: Node):
volume_slider.step = 0.1
volume_slider.value = sfx_node.volume_db
volume_slider.custom_minimum_size.x = 200
volume_hbox.add_child(volume_slider)
volume_slider_hbox.add_child(volume_slider)
var volume_value_label = Label.new()
volume_value_label.text = str(snapped(sfx_node.volume_db, 0.1))
volume_value_label.custom_minimum_size.x = 50
volume_hbox.add_child(volume_value_label)
volume_slider_hbox.add_child(volume_value_label)
# 双向绑定音量
volume_slider.value_changed.connect(func(value):
sfx_node.volume_db = value
volume_value_label.text = str(snapped(value, 0.1))
save_node_config(sfx_node.name, "volume_db", value)
save_node_config(sfx_node.get_path(), "volume_db", value)
)
# Stream 信息和控制
var stream_vbox = VBoxContainer.new()
controls_hbox.add_child(stream_vbox)
@ -128,6 +152,7 @@ func create_sfx_item(sfx_node: Node):
stream_name_label.custom_minimum_size.x = 150
_set_stream_name_label(sfx_node, stream_name_label)
stream_hbox.add_child(stream_name_label)
# 预览播放按钮
var preview_button = Button.new()
@ -138,11 +163,11 @@ func create_sfx_item(sfx_node: Node):
# 恢复默认按钮
if sfx_node.stream_was_replaced():
var reset_button = Button.new()
reset_button.text = "🗑️"
reset_button.custom_minimum_size = Vector2(30, 30)
reset_button.pressed.connect(reset_audio.bind(sfx_node))
stream_hbox.add_child(reset_button)
var reset_btn = Button.new()
reset_btn.text = "恢复默认音频"
reset_btn.custom_minimum_size = Vector2(30, 30)
reset_btn.pressed.connect(reset_audio.bind(sfx_node))
stream_hbox.add_child(reset_btn)
# 3. 上传文件按钮
var upload_button = Button.new()
@ -166,6 +191,12 @@ func _set_stream_name_label(sfx_node:Sfx, stream_name_label:Label) -> void:
stream_name_label.text = "无音频文件"
func reset_volumn(sfx_node: Sfx):
sfx_node.volume_db = sfx_node.default_db
save_config()
refresh_ui()
func preview_audio(sfx_node: Sfx):
if sfx_node.stream:
preview_player.stream = sfx_node.stream
@ -175,7 +206,7 @@ func preview_audio(sfx_node: Sfx):
func reset_audio(sfx_node: Sfx):
sfx_node.reset_original_stream()
config_data.erase(sfx_node.name)
config_data.erase(sfx_node.get_path())
save_config()
refresh_ui()
@ -220,7 +251,7 @@ func copy_and_load_audio_file(source_path: String, sfx_node: Node, stream_label:
if new_stream:
sfx_node.replace_stream(new_stream)
stream_label.text = file_name
save_node_config(sfx_node.name, "stream", target_path)
save_node_config(sfx_node.get_path(), "stream", target_path)
print("音频文件已更新: ", sfx_node.name, " -> ", file_name)
else:
push_error("无法加载音频文件: " + target_path)
@ -228,10 +259,10 @@ func copy_and_load_audio_file(source_path: String, sfx_node: Node, stream_label:
# 4. 配置保存与加载
func save_node_config(node_name: String, property: String, value):
if not config_data.has(node_name):
config_data[node_name] = {}
config_data[node_name][property] = value
func save_node_config(node_path: String, property: String, value):
if not config_data.has(node_path):
config_data[node_path] = {}
config_data[node_path][property] = value
save_config()
func save_config():
@ -260,8 +291,9 @@ func load_config():
func apply_config():
for sfx_node in sfx_nodes:
if config_data.has(sfx_node.name):
var node_config = config_data[sfx_node.name]
var sfx_path = sfx_node.get_path()
if config_data.has(sfx_path):
var node_config = config_data[sfx_path]
if node_config.has("volume_db"):
sfx_node.volume_db = node_config["volume_db"]
if node_config.has("stream"):

View File

@ -35,6 +35,8 @@ func _ready() -> void:
SceneManager.ground_transition_pre_paused.connect(_on_ground_transition_pre_paused)
SceneManager.pause_counter_updated.connect(_on_pause_counter_updated)
var playing_on_debugging_paused = false
func _on_pause_counter_updated() -> void:
_set_up_process_mode_by_mode()
@ -45,6 +47,8 @@ func _set_up_process_mode_by_mode():
if mode == "场景背景音" and not SceneManager.pause_counter_arr.has("debugging"):
process_mode = Node.PROCESS_MODE_ALWAYS
else:
if SceneManager.pause_counter_arr.has("debugging"):
playing_on_debugging_paused = playing
process_mode = Node.PROCESS_MODE_PAUSABLE
@ -69,9 +73,8 @@ func reset_original_stream(ignore_null := true):
func replace_stream(new_stream: AudioStream) -> void:
stop()
stream = new_stream
if autoplay and is_node_ready():
if (playing_on_debugging_paused or autoplay) and is_node_ready():
play()

View File

@ -169,6 +169,7 @@ script = ExtResource("4_qq2uh")
loop = true
[node name="Sfx猫鼠游戏" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
process_mode = 1
stream = SubResource("AudioStreamInteractive_af0pm")
volume_db = -17.0
bus = &"game_sfx"

View File

@ -69,13 +69,13 @@ player_y = 55
script = ExtResource("2_dhaq4")
[node name="环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_na2nu")
volume_db = -4.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_c7jb6")
mode = "场景背景音"
"自动开始" = true
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"

View File

@ -42,24 +42,24 @@ libraries = {
script = ExtResource("2_0lque")
[node name="环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_0x288")
volume_db = -8.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_p6k3c")
mode = "场景背景音"
"自动开始" = true
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="诡异环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("5_eerhd")
volume_db = -7.0
bus = &"game_sfx"
script = ExtResource("4_p6k3c")
mode = "场景背景音"
"自动开始" = false
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"

View File

@ -156,12 +156,12 @@ bus = &"game_sfx"
script = ExtResource("3_vx53v")
[node name="黄包车背景音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = SubResource("AudioStreamSynchronized_s11la")
autoplay = true
bus = &"game_sfx"
script = ExtResource("3_vx53v")
mode = "场景背景音"
"自动开始" = true
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"

View File

@ -24,6 +24,7 @@ player_y = 60
script = ExtResource("2_jfumy")
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("4_ev3cr")
volume_db = -5.0
autoplay = true
@ -35,6 +36,7 @@ mode = "场景背景音"
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx背景虫鸣" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("6_ev3cr")
volume_db = -10.0
autoplay = true

View File

@ -7,7 +7,7 @@
[ext_resource type="Texture2D" uid="uid://5428j51dwarc" path="res://asset/art/scene/c02/s02_大门过道/bg_过道背景.png" id="3_gjwum"]
[ext_resource type="AudioStream" uid="uid://o7fj0r0fbm1h" path="res://asset/audio/sfx/交互/第一章/sfx_冷飕飕.ogg" id="4_36l5t"]
[ext_resource type="SpriteFrames" uid="uid://b7fhheih1hbvf" path="res://config/animation/entity_sprite_frames.tres" id="4_wbif8"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="5_36l5t"]
[ext_resource type="AudioStream" uid="uid://bjwguxsoehrne" path="res://asset/audio/sfx/环境音/第一章/楼道场景2.ogg" id="5_2lo60"]
[ext_resource type="Texture2D" uid="uid://r0n7qy4kr3w2" path="res://asset/art/ui/action_mark/UI场景切换.png" id="5_m1xet"]
[ext_resource type="Texture2D" uid="uid://b8pcnqvdddo5g" path="res://asset/art/prop/c02/海报特写/除鼠二杰.png" id="7_jg8g0"]
[ext_resource type="Texture2D" uid="uid://cvgw2mxrlr6io" path="res://asset/art/scene/c02/旧版/s02_走道/ux_进门鼠疫海报yz.png" id="7_wdwbi"]
@ -59,14 +59,22 @@ libraries = {
script = ExtResource("2_5p8ev")
[node name="冷飕飕Sfx" parent="Ground/AnimationPlayer" index="0" instance=ExtResource("3_fvldj")]
process_mode = 1
stream = ExtResource("4_36l5t")
volume_db = -10.0
mode = "交互与效果音"
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="1"]
script = ExtResource("5_36l5t")
autoplay_group = &"c02_楼道2"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("5_2lo60")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("14_jg8g0")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
self_modulate = Color(0.831373, 0.886275, 0.956863, 1)

View File

@ -56,7 +56,8 @@ func _on_ground_ready() -> void:
new_bg.modulate.a = 1.0
# 火灾开始后,无需 enable
counter.get_node("点燃").modulate.a = 1.0
$VibeSfx氛围.switch_to("c02_火灾")
$"Sfx背景音".easing_kill()
$"Sfx背景火灾".play()
$"../DirectionalLight2D".energy = 0
eavesdrop_window = $"../DeployLayer/李氏赖子房间人影"
madman_npc = $"../DeployLayer/Npc井边疯子"
@ -221,7 +222,8 @@ func _setup_bully_or_burning(reenter_scene := false):
else:
bully_layer.visible = false
burning_layer.visible = true
$VibeSfx氛围.switch_to("c02_火灾")
$"Sfx背景音".easing_kill()
$"Sfx背景火灾".play()
$"../DeployLayer/霸凌/f1/Sfx2D霸凌童谣".easing_kill()
bully_layer.get_node("Ambush点火游戏阻挡右移").enabled = false
bully_layer.get_node("wall/CollisionShape2D").disabled = true

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=82 format=3 uid="uid://djc2uaefhmu7"]
[gd_scene load_steps=83 format=3 uid="uid://djc2uaefhmu7"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_0dylx"]
[ext_resource type="Script" uid="uid://dsp5plrdkrsd7" path="res://scene/ground/scene/c02/s03_院子.gd" id="2_dt5aj"]
@ -7,6 +7,7 @@
[ext_resource type="SpriteFrames" uid="uid://3nas025c2c5u" path="res://asset/art/gif/c02_杂项/c02_杂项_frames.tres" id="4_gd6xp"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_ygnci"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="5_00b7a"]
[ext_resource type="AudioStream" uid="uid://s7uigovfp5g3" path="res://asset/audio/sfx/环境音/第一章/火灾演出.ogg" id="5_fxne6"]
[ext_resource type="AudioStream" uid="uid://bk5cdc06s8x10" path="res://asset/audio/sfx/bgm/第一章/打开铁门后不循环背景音.ogg" id="5_qt2qg"]
[ext_resource type="Texture2D" uid="uid://f8yjp5ggr8qw" path="res://asset/art/scene/c02/s03_公寓一楼院子/算卦布.png" id="6_1tart"]
[ext_resource type="Texture2D" uid="uid://0uh6qaalhqju" path="res://asset/art/scene/c02/s11_一楼火灾/总背景/bg_院子1楼火灾.png" id="6_d7h4s"]
@ -285,7 +286,18 @@ libraries = {
}
script = ExtResource("2_dt5aj")
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
[node name="Sfx背景火灾" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("5_fxne6")
bus = &"game_sfx"
script = ExtResource("4_ygnci")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("3_2b6vx")
volume_db = -12.0
autoplay = true
@ -296,33 +308,33 @@ mode = "场景背景音"
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx闷雷" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
[node name="Sfx闷雷" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
stream = ExtResource("6_vddfx")
bus = &"game_sfx"
script = ExtResource("4_ygnci")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx打开铁门后" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
[node name="Sfx打开铁门后" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"]
stream = ExtResource("5_qt2qg")
volume_db = -20.0
bus = &"game_sfx"
script = ExtResource("4_ygnci")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx小鞋落地" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"]
[node name="Sfx小鞋落地" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"]
stream = ExtResource("7_df1yo")
bus = &"game_sfx"
script = ExtResource("4_ygnci")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx小蝉哼歌" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"]
[node name="Sfx小蝉哼歌" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="5"]
stream = ExtResource("6_jhod7")
volume_db = 16.0
bus = &"game_sfx"
script = ExtResource("4_ygnci")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx牵手演出氛围音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="5"]
[node name="Sfx牵手演出氛围音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="6"]
stream = ExtResource("9_2b6vx")
bus = &"game_sfx"
script = ExtResource("4_ygnci")

View File

@ -1,11 +1,12 @@
[gd_scene load_steps=23 format=3 uid="uid://bivc5cdap370p"]
[gd_scene load_steps=24 format=3 uid="uid://bivc5cdap370p"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_2jej0"]
[ext_resource type="Script" uid="uid://dmhh4g47bdxxy" path="res://scene/ground/scene/c02/s04_保卫科.gd" id="2_jyere"]
[ext_resource type="Texture2D" uid="uid://7jvg2flkapj3" path="res://asset/art/scene/c02/s04_保卫科/bg_保卫科.png" id="3_66gue"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="3_g8amr"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_cq2m4"]
[ext_resource type="SpriteFrames" uid="uid://c2sjavnptjn" path="res://asset/art/gif/c02_保卫科/c02_保卫科_frames.tres" id="4_svuj3"]
[ext_resource type="Texture2D" uid="uid://bnyf8m63ltgh0" path="res://asset/art/scene/c02/s04_保卫科/l_香.png" id="5_cy26p"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="5_g8amr"]
[ext_resource type="PackedScene" uid="uid://dqkxiqbq83cmq" path="res://scene/entity/closeup.tscn" id="6_66gue"]
[ext_resource type="PackedScene" uid="uid://b8i6tqwdvvddy" path="res://scene/ground/script/c02/花名册.tscn" id="6_fvlg0"]
[ext_resource type="Texture2D" uid="uid://cs14llkvr3fg8" path="res://asset/art/scene/c02/s04_保卫科/e_弹珠墙面涂鸦提示.png" id="6_gk1h4"]
@ -33,10 +34,17 @@ player_y = 60
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_jyere")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("5_g8amr")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_g8amr")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_cq2m4")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
light_mask = 5

View File

@ -2,7 +2,7 @@
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_6w6et"]
[ext_resource type="Script" uid="uid://dydpmjpcvt3v1" path="res://scene/ground/scene/c02/s05_一楼内侧楼道.gd" id="2_70lf6"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_laquj"]
[ext_resource type="AudioStream" uid="uid://blf1rtu71vy17" path="res://asset/audio/sfx/环境音/第一章/楼道场景1.ogg" id="3_74b3r"]
[ext_resource type="Texture2D" uid="uid://dbtepltemtmy2" path="res://asset/art/scene/c02/s05_一楼内侧楼道/bg_楼道背景.png" id="3_rcuxq"]
[ext_resource type="AudioStream" uid="uid://d3tnbdx2j4tmy" path="res://asset/audio/sfx/bgm/第一章/sfx_一楼楼道记忆闪回.ogg" id="4_74b3r"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_tueh3"]
@ -113,10 +113,17 @@ libraries = {
}
script = ExtResource("2_70lf6")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_laquj")
autoplay_group = &"c02_楼道1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_74b3r")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("5_74b3r")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx记忆闪回音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
stream = ExtResource("4_74b3r")

View File

@ -2,7 +2,7 @@
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_qkymk"]
[ext_resource type="Script" uid="uid://cbt0ubygchxvv" path="res://scene/ground/scene/c02/s06_二楼.gd" id="2_4dg6u"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_h3h1a"]
[ext_resource type="AudioStream" uid="uid://bjwguxsoehrne" path="res://asset/audio/sfx/环境音/第一章/楼道场景2.ogg" id="3_lipxo"]
[ext_resource type="Texture2D" uid="uid://6ol2om68cd1q" path="res://asset/art/scene/c02/s06_二楼楼道/bg_背景.png" id="3_och2w"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_2e08x"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_haidv"]
@ -898,10 +898,17 @@ libraries = {
}
script = ExtResource("2_4dg6u")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_h3h1a")
autoplay_group = &"c02_楼道2"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_lipxo")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_2e08x")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx翻找东西" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
stream = ExtResource("5_lh55k")

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=19 format=3 uid="uid://t4xjt774ngwh"]
[gd_scene load_steps=20 format=3 uid="uid://t4xjt774ngwh"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_oao56"]
[ext_resource type="Script" uid="uid://cnjdxjni5v3cs" path="res://scene/ground/scene/c02/s07_二楼内侧楼道.gd" id="2_t0s64"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_geise"]
[ext_resource type="AudioStream" uid="uid://bjwguxsoehrne" path="res://asset/audio/sfx/环境音/第一章/楼道场景2.ogg" id="3_e4bwj"]
[ext_resource type="Texture2D" uid="uid://u7rp66mboqq4" path="res://asset/art/scene/c02/s07_二楼内侧楼道/bg_背景.png" id="3_t0s64"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_4anfx"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_5krke"]
[ext_resource type="Texture2D" uid="uid://bim6w1xp1a4bg" path="res://asset/art/scene/c02/s07_二楼内侧楼道/锡箔墙面涂鸦提示.png" id="5_6ivku"]
[ext_resource type="PackedScene" uid="uid://xovlfee503a4" path="res://scene/ground/script/c02/小手讨东西.tscn" id="6_5krke"]
@ -28,10 +29,17 @@ player_y = 60
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_t0s64")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_geise")
autoplay_group = &"c02_楼道2"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_e4bwj")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_4anfx")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_t0s64")

View File

@ -3,10 +3,10 @@
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_judx3"]
[ext_resource type="Script" uid="uid://hbbgymjs5xte" path="res://scene/ground/scene/c02/s08_瞎子卧室.gd" id="2_m4uw8"]
[ext_resource type="Texture2D" uid="uid://v3sj36aijq5b" path="res://asset/art/scene/c02/s08_瞎子卧室/bg_瞎子卧室.png" id="3_iares"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_quq80"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="3_t3h08"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_1ws4i"]
[ext_resource type="Texture2D" uid="uid://vqyhgyka3sfo" path="res://asset/art/scene/c02/s08_瞎子卧室/瞎子卧室前景.png" id="4_gx8oy"]
[ext_resource type="AudioStream" uid="uid://o57tyriodr0c" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里2.ogg" id="4_quq80"]
[ext_resource type="AudioStream" uid="uid://dk3e1w3n2snur" path="res://asset/audio/sfx/旧版/c02/纸人出现.ogg" id="5_0qeqe"]
[ext_resource type="Texture2D" uid="uid://b5pwb4fm46sad" path="res://asset/art/scene/c02/s08_瞎子卧室/e_墙上纸张.png" id="5_f6mma"]
[ext_resource type="Texture2D" uid="uid://7ay1ttob8qwm" path="res://asset/art/scene/c02/s08_瞎子卧室/e_床板.png" id="5_vjjde"]
@ -111,10 +111,17 @@ libraries = {
}
script = ExtResource("2_m4uw8")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_quq80")
autoplay_group = &"c02_房间里2"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("4_quq80")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("3_t3h08")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx癞子对视惊吓" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
stream = ExtResource("5_0qeqe")

View File

@ -186,7 +186,6 @@ autoplay = true
bus = &"game_sfx"
script = ExtResource("4_qjenp")
mode = "场景背景音"
"自动开始" = true
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
@ -196,7 +195,6 @@ stream = ExtResource("5_husb8")
bus = &"game_sfx"
script = ExtResource("4_qjenp")
mode = "场景背景音"
"自动开始" = false
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"

View File

@ -2,8 +2,8 @@
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_w7j0m"]
[ext_resource type="Script" uid="uid://dkkey7qillk15" path="res://scene/ground/scene/c02/s10_空房间.gd" id="2_egtqi"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_kqj5r"]
[ext_resource type="Texture2D" uid="uid://molvyfyy63ik" path="res://asset/art/scene/c02/s10_空房间/bg_空房间.png" id="3_ox8et"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="4_alb6s"]
[ext_resource type="AudioStream" uid="uid://dfni8aakmmp00" path="res://asset/audio/sfx/旧版/c02/红色印记出现.ogg" id="4_nx6jy"]
[ext_resource type="AudioStream" uid="uid://bhaws2ungqaf5" path="res://asset/audio/sfx/交互/角色/sfx_哼歌.ogg" id="5_8cwaw"]
[ext_resource type="PackedScene" uid="uid://cw3q5pvciumil" path="res://scene/entity/interactable.tscn" id="5_ylhfc"]
@ -85,10 +85,17 @@ player_y = 60
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_egtqi")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_kqj5r")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("4_alb6s")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("6_6uftv")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx小蝉出现" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
stream = ExtResource("4_nx6jy")

View File

@ -6,7 +6,7 @@
[ext_resource type="Texture2D" uid="uid://yn00uls1kvn3" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/bg_初始.png" id="3_oskpk"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_r3hvb"]
[ext_resource type="PackedScene" uid="uid://khwxm5qbfj3k" path="res://scene/ground/script/c02/盒子猫canvas_layer.tscn" id="4_vv3sh"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="5_72mc1"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="5_72mc1"]
[ext_resource type="SpriteFrames" uid="uid://b85gyfhk1mg6r" path="res://asset/art/gif/c02_盒子猫/c02_盒子猫_frames.tres" id="5_ycgng"]
[node name="S12" type="Node2D"]
@ -26,10 +26,17 @@ bus = &"game_sfx"
script = ExtResource("4_r3hvb")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="1"]
script = ExtResource("5_72mc1")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("5_72mc1")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_r3hvb")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_oskpk")

View File

@ -7,7 +7,7 @@
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_yywsi"]
[ext_resource type="AudioStream" uid="uid://b8sbtn3l37uh" path="res://asset/audio/sfx/旧版/c02/红屏.ogg" id="5_yywsi"]
[ext_resource type="Texture2D" uid="uid://csrfyvaufo1wb" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/l_瞎子理发店光.png" id="6_gge8e"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="6_kmk38"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="6_kmk38"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="6_yywsi"]
[ext_resource type="PackedScene" uid="uid://khwxm5qbfj3k" path="res://scene/ground/script/c02/盒子猫canvas_layer.tscn" id="7_u2fv1"]
[ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="9_yywsi"]
@ -36,10 +36,17 @@ bus = &"game_sfx"
script = ExtResource("4_yywsi")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="2"]
script = ExtResource("6_kmk38")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
process_mode = 1
stream = ExtResource("6_kmk38")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_yywsi")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_miykx")

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=8 format=3 uid="uid://d0p4x5st2r315"]
[gd_scene load_steps=9 format=3 uid="uid://d0p4x5st2r315"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_cr1hi"]
[ext_resource type="Script" uid="uid://bjisuntcem2lv" path="res://scene/ground/scene/c02/s14_盒子猫二楼内侧.gd" id="2_o47bv"]
[ext_resource type="Texture2D" uid="uid://y0e47513ca22" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/bg_二楼内侧楼道粉笔画.png" id="3_cr1hi"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_idisw"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="3_kss0n"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_3yfjs"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_o47bv"]
[ext_resource type="PackedScene" uid="uid://khwxm5qbfj3k" path="res://scene/ground/script/c02/盒子猫canvas_layer.tscn" id="5_cr1hi"]
[ext_resource type="PackedScene" uid="uid://dewbg4phd8c17" path="res://scene/ground/script/c02/追猫猪头怪.tscn" id="5_o47bv"]
@ -19,10 +20,17 @@ footstep_type = "盒子猫"
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_o47bv")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_idisw")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_kss0n")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_3yfjs")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_cr1hi")

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=7 format=3 uid="uid://b21p53g42j2nt"]
[gd_scene load_steps=8 format=3 uid="uid://b21p53g42j2nt"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_qxg0l"]
[ext_resource type="Script" uid="uid://ebaq235h32fd" path="res://scene/ground/scene/c02/s15_盒子猫一楼内侧.gd" id="2_etqjj"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_etqjj"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="3_etqjj"]
[ext_resource type="Texture2D" uid="uid://c4eb71kdnqy3y" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/bg_一楼内侧楼道粉笔画.png" id="3_qxg0l"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_k187n"]
[ext_resource type="PackedScene" uid="uid://khwxm5qbfj3k" path="res://scene/ground/script/c02/盒子猫canvas_layer.tscn" id="5_isic3"]
[ext_resource type="PackedScene" uid="uid://dewbg4phd8c17" path="res://scene/ground/script/c02/追猫猪头怪.tscn" id="6_etqjj"]
@ -18,10 +19,17 @@ footstep_type = "盒子猫"
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_etqjj")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_etqjj")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_etqjj")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_k187n")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_qxg0l")

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=9 format=3 uid="uid://22hc3oe8t0id"]
[gd_scene load_steps=10 format=3 uid="uid://22hc3oe8t0id"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_umyae"]
[ext_resource type="Script" uid="uid://dx2w5v1erjyls" path="res://scene/ground/scene/c02/s16_盒子猫三楼内侧.gd" id="2_tmnwc"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_r8qm5"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="3_7w00y"]
[ext_resource type="Texture2D" uid="uid://by4ymjhnma8c6" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/bg_三楼内侧楼道粉笔画.png" id="3_tmnwc"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_1h6hi"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_qkv3g"]
[ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="5_qkv3g"]
[ext_resource type="PackedScene" uid="uid://khwxm5qbfj3k" path="res://scene/ground/script/c02/盒子猫canvas_layer.tscn" id="5_tmnwc"]
@ -20,10 +21,17 @@ footstep_type = "盒子猫"
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_tmnwc")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_r8qm5")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_7w00y")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_1h6hi")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_tmnwc")

View File

@ -1,10 +1,11 @@
[gd_scene load_steps=9 format=3 uid="uid://cbr6gbgrl2wb1"]
[gd_scene load_steps=10 format=3 uid="uid://cbr6gbgrl2wb1"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_e436a"]
[ext_resource type="Script" uid="uid://bkkhxiyblu2lo" path="res://scene/ground/scene/c02/s17_盒子猫三楼.gd" id="2_e436a"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="3_4yexs"]
[ext_resource type="Texture2D" uid="uid://iyeqjguyrhog" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/bg_三楼楼道粉笔画.png" id="3_e436a"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_uua76"]
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_e436a"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_m6dyn"]
[ext_resource type="PackedScene" uid="uid://khwxm5qbfj3k" path="res://scene/ground/script/c02/盒子猫canvas_layer.tscn" id="4_n3bxc"]
[ext_resource type="PackedScene" uid="uid://dewbg4phd8c17" path="res://scene/ground/script/c02/追猫猪头怪.tscn" id="6_pfgbg"]
[ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="8_m6dyn"]
@ -20,10 +21,17 @@ footstep_type = "盒子猫"
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_e436a")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_uua76")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_4yexs")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_m6dyn")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_e436a")

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=8 format=3 uid="uid://d27gv3pbkn4b8"]
[gd_scene load_steps=9 format=3 uid="uid://d27gv3pbkn4b8"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_4bsvj"]
[ext_resource type="Script" uid="uid://b3mak700k2qwt" path="res://scene/ground/scene/c02/s18_盒子猫一楼.gd" id="2_4bsvj"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_4bsvj"]
[ext_resource type="AudioStream" uid="uid://b2mudqvq1dmng" path="res://asset/audio/sfx/环境音/白噪音/白噪声房间里1.ogg" id="3_bbmua"]
[ext_resource type="Texture2D" uid="uid://ttocw3erg8jv" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/bg_一楼楼道粉笔画.png" id="3_owpnf"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_po2lv"]
[ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="5_emyx1"]
[ext_resource type="PackedScene" uid="uid://dewbg4phd8c17" path="res://scene/ground/script/c02/追猫猪头怪.tscn" id="6_xoyld"]
[ext_resource type="PackedScene" uid="uid://khwxm5qbfj3k" path="res://scene/ground/script/c02/盒子猫canvas_layer.tscn" id="7_8eo7o"]
@ -19,10 +20,17 @@ footstep_type = "盒子猫"
[node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_4bsvj")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_4bsvj")
autoplay_group = &"c02_房间里1"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_bbmua")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_po2lv")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
texture = ExtResource("3_owpnf")

View File

@ -1,8 +1,9 @@
[gd_scene load_steps=32 format=3 uid="uid://dlrbhfvnd3cs0"]
[gd_scene load_steps=33 format=3 uid="uid://dlrbhfvnd3cs0"]
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_eb2op"]
[ext_resource type="Script" uid="uid://c0rh2n36ait6i" path="res://scene/ground/scene/c03/s01_三楼.gd" id="2_ow08b"]
[ext_resource type="Script" uid="uid://cpejxlfni6n52" path="res://manager/audio_manager/vibe_sfx.gd" id="3_lb1oo"]
[ext_resource type="AudioStream" uid="uid://bjwguxsoehrne" path="res://asset/audio/sfx/环境音/第一章/楼道场景2.ogg" id="3_hmme5"]
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_1ebn8"]
[ext_resource type="Texture2D" uid="uid://cpjd3dqri51fq" path="res://asset/art/scene/c03/s01_三楼/bg_三楼走廊.png" id="4_ow08b"]
[ext_resource type="Texture2D" uid="uid://b7t2sfe5ugtsc" path="res://asset/art/scene/c03/引导纸人/指引纸人3.png" id="5_fnwup"]
[ext_resource type="Texture2D" uid="uid://djoft6600kly6" path="res://asset/art/scene/c03/s01_三楼/fg_前景.png" id="5_ow08b"]
@ -183,10 +184,17 @@ libraries = {
}
script = ExtResource("2_ow08b")
[node name="VibeSfx" type="Node" parent="Ground/AnimationPlayer" index="0"]
script = ExtResource("3_lb1oo")
autoplay_group = &"c02_楼道2"
metadata/_custom_type_script = "uid://cpejxlfni6n52"
[node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_hmme5")
volume_db = -5.0
autoplay = true
bus = &"game_sfx"
script = ExtResource("4_1ebn8")
mode = "场景背景音"
"循环播放" = true
"感应玩家操作" = false
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="BGSprite2D" parent="Ground" index="2"]
light_mask = 5