sfx 运行模式为 Inherit

This commit is contained in:
cakipaul 2025-07-02 01:46:58 +08:00
parent 866a1f7f7f
commit 72199eaff5
32 changed files with 59 additions and 114 deletions

View File

@ -84,5 +84,5 @@ signal auto_save_seconds_changed
# zh: 0 _SH, 1 _CN; en: [null]; # zh: 0 _SH, 1 _CN; en: [null];
@export var caption := 0 @export var caption := 0
# 最大范围为 10 秒,精度 0.1 # 最大范围为 10 秒,精度 0.1
@export var os_wait_time := 2.0 @export var os_wait_time := 3.0
@export var os_auto_end := true @export var os_auto_end := true

View File

@ -24,12 +24,10 @@ prop_key2 = ""
prop_key3 = "" prop_key3 = ""
[node name="SfxInvalid" type="AudioStreamPlayer" parent="."] [node name="SfxInvalid" type="AudioStreamPlayer" parent="."]
process_mode = 1
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("5_dnubm") script = ExtResource("5_dnubm")
[node name="SfxSuccess" type="AudioStreamPlayer" parent="."] [node name="SfxSuccess" type="AudioStreamPlayer" parent="."]
process_mode = 1
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("5_dnubm") script = ExtResource("5_dnubm")

View File

@ -22,7 +22,6 @@ content_key = ""
[node name="Sfx" type="AudioStreamPlayer" parent="."] [node name="Sfx" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("3_3ldx7") stream = ExtResource("3_3ldx7")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_q18ff") script = ExtResource("3_q18ff")

View File

@ -24,14 +24,12 @@ prop_key2 = ""
prop_key3 = "" prop_key3 = ""
[node name="SfxInvalid" type="AudioStreamPlayer" parent="."] [node name="SfxInvalid" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("4_n1rbo") stream = ExtResource("4_n1rbo")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("6_l2kr5") script = ExtResource("6_l2kr5")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="SfxSuccess" type="AudioStreamPlayer" parent="."] [node name="SfxSuccess" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("5_exp6m") stream = ExtResource("5_exp6m")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("6_l2kr5") script = ExtResource("6_l2kr5")

View File

@ -18,7 +18,6 @@ note_key = ""
[node name="Sfx" type="AudioStreamPlayer" parent="."] [node name="Sfx" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("3_y3pwa") stream = ExtResource("3_y3pwa")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_ycvi5") script = ExtResource("4_ycvi5")

View File

@ -17,7 +17,6 @@ prop_key = ""
[node name="Sfx" type="AudioStreamPlayer" parent="."] [node name="Sfx" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("3_dxdbj") stream = ExtResource("3_dxdbj")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_1h8r3") script = ExtResource("3_1h8r3")

View File

@ -30,28 +30,24 @@ prop_key = ""
[node name="SfxDefault" type="AudioStreamPlayer" parent="."] [node name="SfxDefault" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("6_1sj6c") stream = ExtResource("6_1sj6c")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("6_bxihn") script = ExtResource("6_bxihn")
[node name="SfxOpen" type="AudioStreamPlayer" parent="."] [node name="SfxOpen" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("5_l48hy") stream = ExtResource("5_l48hy")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("6_bxihn") script = ExtResource("6_bxihn")
[node name="SfxEnter" type="AudioStreamPlayer" parent="."] [node name="SfxEnter" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("6_p48ld") stream = ExtResource("6_p48ld")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("6_bxihn") script = ExtResource("6_bxihn")
[node name="SfxLocked" type="AudioStreamPlayer" parent="."] [node name="SfxLocked" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("7_bjcty") stream = ExtResource("7_bjcty")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("6_bxihn") script = ExtResource("6_bxihn")

View File

@ -7,9 +7,7 @@ signal os_finished
@onready var os_contaner = %PanelContainer as PanelContainer @onready var os_contaner = %PanelContainer as PanelContainer
var os_tween: Tween var os_tween: Tween
# 保证每次 pop_os 后都会有一次 os_finished 信号
var os_finish_emit_lock := Mutex.new()
var os_finished_not_emitted := false
func _ready() -> void: func _ready() -> void:
if Engine.is_editor_hint(): if Engine.is_editor_hint():
@ -19,23 +17,25 @@ func _ready() -> void:
return return
os_contaner.modulate.a = 0.0 os_contaner.modulate.a = 0.0
os_label.text = "" os_label.text = ""
os_pausing_timer.timeout.connect(_on_os_line_timeout) os_pausing_timer.timeout.connect(_on_os_pausing_timeout)
os_finished.connect(func(): locking = false)
var locking := false:
set(val):
if val != locking:
locking = val
if val:
SceneManager.lock_player()
else:
SceneManager.unlock_player()
func pop_os(lines := []) -> void: func pop_os(lines := []) -> void:
if os_tween: if os_tween and os_tween.is_valid():
os_tween.kill() os_tween.kill()
os_finish_emit_lock.lock()
if os_finished_not_emitted:
os_finished.emit() os_finished.emit()
os_finished_not_emitted = true locking = true
os_finish_emit_lock.unlock()
SceneManager.lock_player()
# os_finished 必然发送,防止 tween 被 kill保证一定 unlock
if os_finished.is_connected(SceneManager.unlock_player):
SceneManager.unlock_player()
else:
os_finished.connect(SceneManager.unlock_player, CONNECT_ONE_SHOT)
os_tween = create_tween() os_tween = create_tween()
os_label.text = "" os_label.text = ""
os_tween.tween_property(os_contaner, "modulate:a", 1.0, 0.2) os_tween.tween_property(os_contaner, "modulate:a", 1.0, 0.2)
@ -44,13 +44,7 @@ func pop_os(lines := []) -> void:
var duration = max(GlobalConfigManager.config.os_wait_time, 0.01) var duration = max(GlobalConfigManager.config.os_wait_time, 0.01)
os_tween.tween_callback(_os_load_line.bind(line, duration)) os_tween.tween_callback(_os_load_line.bind(line, duration))
os_tween.tween_property(os_contaner, "modulate:a", 0.0, 0.2) os_tween.tween_property(os_contaner, "modulate:a", 0.0, 0.2)
os_tween.tween_callback(func(): os_tween.tween_callback(os_finished.emit)
os_finish_emit_lock.lock()
if os_finished_not_emitted:
os_finished_not_emitted = false
os_finished.emit()
os_finish_emit_lock.unlock()
)
# os 结束 # os 结束
await os_finished await os_finished
@ -58,23 +52,27 @@ func pop_os(lines := []) -> void:
func _os_load_line(line: DialogueLine, duration: float): func _os_load_line(line: DialogueLine, duration: float):
os_label.dialogue_line = line os_label.dialogue_line = line
os_label.type_out() os_label.type_out()
if os_label.finished_typing.is_connected(os_pausing_timer.start): if GlobalConfigManager.config.os_auto_end:
os_label.finished_typing.disconnect(os_pausing_timer.start) if os_label.finished_typing.is_connected(os_pausing_timer.start):
os_label.finished_typing.connect(os_pausing_timer.start.bind(duration), CONNECT_ONE_SHOT) os_label.finished_typing.disconnect(os_pausing_timer.start)
os_label.finished_typing.connect(os_pausing_timer.start.bind(duration), CONNECT_ONE_SHOT)
os_tween.pause() os_tween.pause()
func _on_os_line_timeout(naturally := true): func _on_os_pausing_timeout():
if not naturally:
if os_label.is_typing:
os_label.skip_typing()
return
if os_tween and os_tween.is_valid(): if os_tween and os_tween.is_valid():
os_tween.play() os_tween.play()
func _unhandled_input(event: InputEvent) -> void: func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("interact"): if event.is_action_pressed("interact"):
if os_pausing_timer and os_pausing_timer.time_left > 0: if os_label.is_typing:
get_viewport().set_input_as_handled() get_viewport().set_input_as_handled()
_on_os_line_timeout(false) os_label.skip_typing()
elif (
not os_pausing_timer.is_stopped()
or (not GlobalConfigManager.config.os_auto_end and os_tween and os_tween.is_valid())
):
get_viewport().set_input_as_handled()
os_pausing_timer.stop()
_on_os_pausing_timeout()

View File

@ -646,10 +646,24 @@ data = {
"frame_relocated": false, "frame_relocated": false,
"oneshot_animation_played": false "oneshot_animation_played": false
} }
debug_ground_data = Dictionary[String, Variant]({
"AnimationPlayer": {
"frame_relocated": false,
"oneshot_animation_played": true
},
"ambush鸡毛掸子": {
"played": false
},
"oneshot纸片": {
"interacted_times": 0
},
"钢琴": {
"interacted_times": 0
}
})
oneshot_animation = "intro" oneshot_animation = "intro"
[node name="intro_audio_player" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"] [node name="intro_audio_player" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_sluu3") stream = ExtResource("3_sluu3")
volume_db = -10.0 volume_db = -10.0
bus = &"game_sfx" bus = &"game_sfx"
@ -657,13 +671,11 @@ script = ExtResource("4_1jor4")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="piano_player" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"] [node name="piano_player" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_1jor4") script = ExtResource("4_1jor4")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="扶正相框" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"] [node name="扶正相框" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
process_mode = 1
stream = ExtResource("3_jk3np") stream = ExtResource("3_jk3np")
volume_db = -6.933 volume_db = -6.933
bus = &"game_sfx" bus = &"game_sfx"
@ -671,7 +683,6 @@ script = ExtResource("4_1jor4")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="捡起纸片后开门声" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"] [node name="捡起纸片后开门声" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"]
process_mode = 1
stream = ExtResource("5_1jor4") stream = ExtResource("5_1jor4")
volume_db = -2.0 volume_db = -2.0
bus = &"game_sfx" bus = &"game_sfx"
@ -679,7 +690,6 @@ script = ExtResource("4_1jor4")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="下床与铃声音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"] [node name="下床与铃声音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"]
process_mode = 1
stream = SubResource("AudioStreamSynchronized_sluu3") stream = SubResource("AudioStreamSynchronized_sluu3")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_1jor4") script = ExtResource("4_1jor4")

View File

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

View File

@ -75,7 +75,6 @@ data = {
oneshot_animation = "" oneshot_animation = ""
[node name="环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"] [node name="环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_na2nu") stream = ExtResource("3_na2nu")
volume_db = -4.0 volume_db = -4.0
autoplay = true autoplay = true
@ -88,7 +87,6 @@ mode = "场景背景音"
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="chapter_sfx" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"] [node name="chapter_sfx" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("3_c7jb6") stream = ExtResource("3_c7jb6")
volume_db = -5.0 volume_db = -5.0
bus = &"game_sfx" bus = &"game_sfx"
@ -96,7 +94,6 @@ script = ExtResource("4_c7jb6")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="报童音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"] [node name="报童音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
process_mode = 1
stream = ExtResource("5_7sdrt") stream = ExtResource("5_7sdrt")
volume_db = -5.0 volume_db = -5.0
bus = &"game_sfx" bus = &"game_sfx"
@ -104,7 +101,6 @@ script = ExtResource("4_c7jb6")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="敲门音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"] [node name="敲门音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"]
process_mode = 1
stream = ExtResource("6_hwht7") stream = ExtResource("6_hwht7")
volume_db = -2.0 volume_db = -2.0
bus = &"game_sfx" bus = &"game_sfx"
@ -112,7 +108,6 @@ script = ExtResource("4_c7jb6")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="开门音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"] [node name="开门音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"]
process_mode = 1
stream = ExtResource("8_sqlmr") stream = ExtResource("8_sqlmr")
volume_db = -4.0 volume_db = -4.0
bus = &"game_sfx" bus = &"game_sfx"
@ -199,7 +194,6 @@ action_configs = Array[Dictionary]([{
}]) }])
[node name="Sfx2D" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/陆仁舞刀"] [node name="Sfx2D" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/陆仁舞刀"]
process_mode = 1
stream = ExtResource("14_c7jb6") stream = ExtResource("14_c7jb6")
volume_db = -2.0 volume_db = -2.0
autoplay = true autoplay = true

View File

@ -61,7 +61,6 @@ script = ExtResource("2_0lque")
oneshot_animation = "one_shot" oneshot_animation = "one_shot"
[node name="环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"] [node name="环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_0x288") stream = ExtResource("3_0x288")
volume_db = -8.0 volume_db = -8.0
autoplay = true autoplay = true
@ -74,7 +73,6 @@ mode = "场景背景音"
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="诡异环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"] [node name="诡异环境音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("5_eerhd") stream = ExtResource("5_eerhd")
volume_db = -7.0 volume_db = -7.0
bus = &"game_sfx" bus = &"game_sfx"
@ -86,14 +84,12 @@ mode = "场景背景音"
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="写字声[未启用]" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"] [node name="写字声[未启用]" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
process_mode = 1
stream = ExtResource("4_5j1ov") stream = ExtResource("4_5j1ov")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_p6k3c") script = ExtResource("4_p6k3c")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="放报纸音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"] [node name="放报纸音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"]
process_mode = 1
stream = ExtResource("9_lfr41") stream = ExtResource("9_lfr41")
volume_db = -5.0 volume_db = -5.0
bus = &"game_sfx" bus = &"game_sfx"
@ -101,7 +97,6 @@ script = ExtResource("4_p6k3c")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="摔倒音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"] [node name="摔倒音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"]
process_mode = 1
stream = ExtResource("8_p6k3c") stream = ExtResource("8_p6k3c")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_p6k3c") script = ExtResource("4_p6k3c")

View File

@ -117,19 +117,9 @@ portal_name = "2"
target_scene = "c01_s10" target_scene = "c01_s10"
target_portal = "left" target_portal = "left"
[node name="SfxDefault" parent="Ground/DeployLayer/portal_2" index="0"]
process_mode = 0
[node name="SfxOpen" parent="Ground/DeployLayer/portal_2" index="1"]
process_mode = 0
[node name="SfxEnter" parent="Ground/DeployLayer/portal_2" index="2"] [node name="SfxEnter" parent="Ground/DeployLayer/portal_2" index="2"]
process_mode = 0
stream = null stream = null
[node name="SfxLocked" parent="Ground/DeployLayer/portal_2" index="3"]
process_mode = 0
[node name="Sign" parent="Ground/DeployLayer/portal_2" index="4"] [node name="Sign" parent="Ground/DeployLayer/portal_2" index="4"]
enabled = true enabled = true

View File

@ -100,7 +100,6 @@ bgm_stream = ExtResource("4_mxf8g")
metadata/_custom_type_script = "uid://bbg4vopj4apl6" metadata/_custom_type_script = "uid://bbg4vopj4apl6"
[node name="Sfx鬼差出场" type="AudioStreamPlayer2D" parent="Ground/AnimationPlayer" index="1"] [node name="Sfx鬼差出场" type="AudioStreamPlayer2D" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
position = Vector2(1443, 41) position = Vector2(1443, 41)
stream = ExtResource("5_5qtdl") stream = ExtResource("5_5qtdl")
bus = &"game_sfx" bus = &"game_sfx"
@ -108,7 +107,6 @@ script = ExtResource("6_mxf8g")
metadata/_custom_type_script = "uid://wapo47a1oddf" metadata/_custom_type_script = "uid://wapo47a1oddf"
[node name="Sfx鬼差擦肩而过" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"] [node name="Sfx鬼差擦肩而过" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
process_mode = 1
stream = ExtResource("7_denrd") stream = ExtResource("7_denrd")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("6_p7n7n") script = ExtResource("6_p7n7n")

View File

@ -588,7 +588,6 @@ event = "c02_madman_interacted"
metadata/_custom_type_script = "uid://bkkiyk5jkdw4d" metadata/_custom_type_script = "uid://bkkiyk5jkdw4d"
[node name="Sfx2D小蝉哼歌" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/Event2D小蝉哼歌"] [node name="Sfx2D小蝉哼歌" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/Event2D小蝉哼歌"]
process_mode = 1
position = Vector2(-2, -1) position = Vector2(-2, -1)
stream = ExtResource("6_jhod7") stream = ExtResource("6_jhod7")
volume_db = 20.0 volume_db = 20.0
@ -606,12 +605,6 @@ action_key = 3
interacted_texture = ExtResource("9_liq0c") interacted_texture = ExtResource("9_liq0c")
prop_key = "prop_老虎钳" prop_key = "prop_老虎钳"
[node name="SfxInvalid" parent="Ground/DeployLayer/Interactable铁门" index="0"]
process_mode = 0
[node name="SfxSuccess" parent="Ground/DeployLayer/Interactable铁门" index="1"]
process_mode = 0
[node name="CollisionShape2D" parent="Ground/DeployLayer/Interactable铁门/Area2D" index="0"] [node name="CollisionShape2D" parent="Ground/DeployLayer/Interactable铁门/Area2D" index="0"]
shape = SubResource("RectangleShape2D_er6ob") shape = SubResource("RectangleShape2D_er6ob")
@ -733,7 +726,6 @@ animation = &"霸凌1"
autoplay = "霸凌1" autoplay = "霸凌1"
[node name="Sfx2D霸凌童谣" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/霸凌/f1"] [node name="Sfx2D霸凌童谣" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/霸凌/f1"]
process_mode = 1
stream = ExtResource("46_qqdxs") stream = ExtResource("46_qqdxs")
volume_db = -5.0 volume_db = -5.0
attenuation = 2.0 attenuation = 2.0
@ -1006,7 +998,6 @@ animation = &"吕萍牵手动作"
shape = SubResource("RectangleShape2D_vddfx") shape = SubResource("RectangleShape2D_vddfx")
[node name="Sfx2D跑步" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/火灾/牵手跑"] [node name="Sfx2D跑步" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/火灾/牵手跑"]
process_mode = 1
stream = SubResource("AudioStreamRandomizer_fxne6") stream = SubResource("AudioStreamRandomizer_fxne6")
volume_db = 3.0 volume_db = 3.0
bus = &"game_sfx" bus = &"game_sfx"

View File

@ -355,7 +355,6 @@ event = "c02_madman_interacted"
metadata/_custom_type_script = "uid://bkkiyk5jkdw4d" metadata/_custom_type_script = "uid://bkkiyk5jkdw4d"
[node name="Sfx2D小蝉哼歌" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/Event2D小蝉哼歌"] [node name="Sfx2D小蝉哼歌" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/Event2D小蝉哼歌"]
process_mode = 1
position = Vector2(-103, -11) position = Vector2(-103, -11)
stream = ExtResource("24_7mq0m") stream = ExtResource("24_7mq0m")
volume_db = 20.0 volume_db = 20.0

View File

@ -1035,7 +1035,6 @@ action_configs = Array[Dictionary]([{
}]) }])
[node name="疯子撞墙Sfx2D" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/疯子撞墙"] [node name="疯子撞墙Sfx2D" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/疯子撞墙"]
process_mode = 1
position = Vector2(5, 28) position = Vector2(5, 28)
stream = SubResource("AudioStreamRandomizer_wywax") stream = SubResource("AudioStreamRandomizer_wywax")
volume_db = 10.0 volume_db = 10.0
@ -1161,7 +1160,6 @@ move_configs = Array[Dictionary]([{
debug_mov_animation = "方瞎子走路-左" debug_mov_animation = "方瞎子走路-左"
[node name="Sfx2D脚步声" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/c02_final/瞎子"] [node name="Sfx2D脚步声" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/c02_final/瞎子"]
process_mode = 1
position = Vector2(-39, -20) position = Vector2(-39, -20)
stream = SubResource("AudioStreamRandomizer_4ndyv") stream = SubResource("AudioStreamRandomizer_4ndyv")
bus = &"game_sfx" bus = &"game_sfx"

View File

@ -296,7 +296,6 @@ animation = &"c02_王癞子_蹲着呼吸"
autoplay = "c02_王癞子_蹲着呼吸" autoplay = "c02_王癞子_蹲着呼吸"
[node name="Sfx2D癞子呼吸" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/癞子偷窥"] [node name="Sfx2D癞子呼吸" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/癞子偷窥"]
process_mode = 1
stream = ExtResource("20_ujhuc") stream = ExtResource("20_ujhuc")
volume_db = -5.0 volume_db = -5.0
max_distance = 700.0 max_distance = 700.0

View File

@ -183,7 +183,6 @@ script = ExtResource("2_34a6f")
oneshot_animation = "" oneshot_animation = ""
[node name="背景音效_通道" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"] [node name="背景音效_通道" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
process_mode = 1
stream = ExtResource("3_qjenp") stream = ExtResource("3_qjenp")
autoplay = true autoplay = true
bus = &"game_sfx" bus = &"game_sfx"
@ -195,7 +194,6 @@ mode = "场景背景音"
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="背景音效_红色" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"] [node name="背景音效_红色" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"]
process_mode = 1
stream = ExtResource("5_husb8") stream = ExtResource("5_husb8")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_qjenp") script = ExtResource("4_qjenp")

View File

@ -20,7 +20,14 @@ footstep_type = "盒子猫"
[node name="AnimationPlayer" parent="Ground" index="0"] [node name="AnimationPlayer" parent="Ground" index="0"]
script = ExtResource("2_7ah3n") script = ExtResource("2_7ah3n")
debug_global_data = Dictionary[String, Variant]({ debug_global_data = Dictionary[String, Variant]({
"enabled_items": ["prop_火柴", "prop_院长的信", "prop_银元"] "c02_boxcat_skip_intro": 0,
"enabled_items": ["prop_火柴", "prop_院长的信", "prop_银元"],
"player_x": 30.0
})
debug_ground_data = Dictionary[String, Variant]({
"AnimationPlayer": {
"oneshot_animation_played": false
}
}) })
oneshot_animation = "" oneshot_animation = ""
@ -49,7 +56,6 @@ status = "opened"
position = Vector2(465, 21) position = Vector2(465, 21)
[node name="小猫初始动画" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="2"] [node name="小猫初始动画" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="2"]
process_mode = 1
position = Vector2(212, 3) position = Vector2(212, 3)
sprite_frames = ExtResource("5_ycgng") sprite_frames = ExtResource("5_ycgng")
animation = &"猫钻进盒子" animation = &"猫钻进盒子"

View File

@ -26,14 +26,12 @@ script = ExtResource("2_w5nqu")
oneshot_animation = "" oneshot_animation = ""
[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("3_yywsi") stream = ExtResource("3_yywsi")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_yywsi") script = ExtResource("4_yywsi")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" 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="1"]
process_mode = 1
stream = ExtResource("5_yywsi") stream = ExtResource("5_yywsi")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("4_yywsi") script = ExtResource("4_yywsi")
@ -72,6 +70,7 @@ texture = ExtResource("6_gge8e")
position = Vector2(214, 11) position = Vector2(214, 11)
trigger_mode = "interact" trigger_mode = "interact"
one_shot = false one_shot = false
lock_player_on_playing_dialogue = null
hook_method = "knock_light_door" hook_method = "knock_light_door"
[node name="Ambush猫咪敲门互动" parent="Ground/DeployLayer" index="5" instance=ExtResource("9_yywsi")] [node name="Ambush猫咪敲门互动" parent="Ground/DeployLayer" index="5" instance=ExtResource("9_yywsi")]
@ -79,6 +78,7 @@ position = Vector2(103, 6)
trigger_mode = "interact" trigger_mode = "interact"
one_shot = false one_shot = false
cooldown_time = 1.5 cooldown_time = 1.5
lock_player_on_playing_dialogue = null
global_method = "c02_cat_play_with_door" global_method = "c02_cat_play_with_door"
[node name="Ambush猫咪敲门互动2" parent="Ground/DeployLayer" index="6" instance=ExtResource("9_yywsi")] [node name="Ambush猫咪敲门互动2" parent="Ground/DeployLayer" index="6" instance=ExtResource("9_yywsi")]
@ -86,6 +86,7 @@ position = Vector2(539, 6)
trigger_mode = "interact" trigger_mode = "interact"
one_shot = false one_shot = false
cooldown_time = 1.5 cooldown_time = 1.5
lock_player_on_playing_dialogue = null
global_method = "c02_cat_play_with_door" global_method = "c02_cat_play_with_door"
[node name="Ambush猫咪敲门互动3" parent="Ground/DeployLayer" index="7" instance=ExtResource("9_yywsi")] [node name="Ambush猫咪敲门互动3" parent="Ground/DeployLayer" index="7" instance=ExtResource("9_yywsi")]
@ -93,6 +94,7 @@ position = Vector2(663, 5)
trigger_mode = "interact" trigger_mode = "interact"
one_shot = false one_shot = false
cooldown_time = 1.5 cooldown_time = 1.5
lock_player_on_playing_dialogue = null
global_method = "c02_cat_play_with_door" global_method = "c02_cat_play_with_door"
[node name="追猫猪头怪_左侧" parent="Ground/DeployLayer" index="8" instance=ExtResource("10_kmk38")] [node name="追猫猪头怪_左侧" parent="Ground/DeployLayer" index="8" instance=ExtResource("10_kmk38")]

View File

@ -121,7 +121,6 @@ texture = ExtResource("4_beln2")
centered = false centered = false
[node name="Sfx" type="AudioStreamPlayer" parent="."] [node name="Sfx" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("5_c13qq") stream = ExtResource("5_c13qq")
volume_db = -40.0 volume_db = -40.0
bus = &"game_sfx" bus = &"game_sfx"
@ -129,7 +128,6 @@ script = ExtResource("5_ug335")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="背景音" type="AudioStreamPlayer" parent="."] [node name="背景音" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = SubResource("AudioStreamSynchronized_k54st") stream = SubResource("AudioStreamSynchronized_k54st")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("5_ug335") script = ExtResource("5_ug335")

View File

@ -43,13 +43,11 @@ prop_key2 = ""
prop_key3 = "" prop_key3 = ""
[node name="SfxInvalid" type="AudioStreamPlayer" parent="."] [node name="SfxInvalid" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("9_l338h") stream = ExtResource("9_l338h")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("8_abb1f") script = ExtResource("8_abb1f")
[node name="SfxSuccess" type="AudioStreamPlayer" parent="."] [node name="SfxSuccess" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("9_abb1f") stream = ExtResource("9_abb1f")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("8_abb1f") script = ExtResource("8_abb1f")

View File

@ -29,7 +29,6 @@ scale = Vector2(0.86, 0.86)
texture = SubResource("AtlasTexture_5gnxj") texture = SubResource("AtlasTexture_5gnxj")
[node name="Sfx2D老鼠叫" type="AudioStreamPlayer2D" parent="mouse1"] [node name="Sfx2D老鼠叫" type="AudioStreamPlayer2D" parent="mouse1"]
process_mode = 1
position = Vector2(-141.302, -5.86671) position = Vector2(-141.302, -5.86671)
scale = Vector2(1.16279, 1.16279) scale = Vector2(1.16279, 1.16279)
stream = ExtResource("3_otpwt") stream = ExtResource("3_otpwt")

View File

@ -29,28 +29,24 @@ unmatched_sign_texture = ExtResource("4_0tuif")
matched_sign_texture = ExtResource("5_n2hq3") matched_sign_texture = ExtResource("5_n2hq3")
[node name="SfxInvalid" type="AudioStreamPlayer" parent="."] [node name="SfxInvalid" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("6_lr23o") stream = ExtResource("6_lr23o")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("7_7dftu") script = ExtResource("7_7dftu")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="SfxSuccess" type="AudioStreamPlayer" parent="."] [node name="SfxSuccess" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("8_7dftu") stream = ExtResource("8_7dftu")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("7_7dftu") script = ExtResource("7_7dftu")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="SfxBgm" type="AudioStreamPlayer" parent="."] [node name="SfxBgm" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("9_7dftu") stream = ExtResource("9_7dftu")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("7_7dftu") script = ExtResource("7_7dftu")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx摔倒" type="AudioStreamPlayer" parent="."] [node name="Sfx摔倒" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("10_0tuif") stream = ExtResource("10_0tuif")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("7_7dftu") script = ExtResource("7_7dftu")

View File

@ -15,14 +15,12 @@
script = ExtResource("1_7tphw") script = ExtResource("1_7tphw")
[node name="Sfx抽纸" type="AudioStreamPlayer" parent="."] [node name="Sfx抽纸" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("2_0pjjb") stream = ExtResource("2_0pjjb")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_ftr7c") script = ExtResource("3_ftr7c")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx折纸" type="AudioStreamPlayer" parent="."] [node name="Sfx折纸" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("4_g2p6p") stream = ExtResource("4_g2p6p")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_ftr7c") script = ExtResource("3_ftr7c")

View File

@ -396,21 +396,18 @@ script = ExtResource("1_s8k21")
[node name="Root" type="Node2D" parent="."] [node name="Root" type="Node2D" parent="."]
[node name="Sfx擦火柴" type="AudioStreamPlayer" parent="Root"] [node name="Sfx擦火柴" type="AudioStreamPlayer" parent="Root"]
process_mode = 1
stream = ExtResource("2_yo1xc") stream = ExtResource("2_yo1xc")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_r7yca") script = ExtResource("3_r7yca")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx小蝉捂眼后笑声" type="AudioStreamPlayer" parent="Root"] [node name="Sfx小蝉捂眼后笑声" type="AudioStreamPlayer" parent="Root"]
process_mode = 1
stream = ExtResource("4_8edqb") stream = ExtResource("4_8edqb")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_r7yca") script = ExtResource("3_r7yca")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="Sfx小蝉蒙眼" type="AudioStreamPlayer" parent="Root"] [node name="Sfx小蝉蒙眼" type="AudioStreamPlayer" parent="Root"]
process_mode = 1
stream = ExtResource("5_kfwxg") stream = ExtResource("5_kfwxg")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_r7yca") script = ExtResource("3_r7yca")

View File

@ -55,7 +55,6 @@ mouse_filter = 2
[node name="SfxClick" type="AudioStreamPlayer" parent="."] [node name="SfxClick" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
process_mode = 1
stream = ExtResource("2_te6ya") stream = ExtResource("2_te6ya")
volume_db = -8.285 volume_db = -8.285
bus = &"game_sfx" bus = &"game_sfx"

View File

@ -30,13 +30,11 @@ layer = 5
script = ExtResource("1_cifku") script = ExtResource("1_cifku")
[node name="SfxMove" type="AudioStreamPlayer" parent="."] [node name="SfxMove" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("3_eph5y") stream = ExtResource("3_eph5y")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_ifhby") script = ExtResource("3_ifhby")
[node name="Sfx展开信" type="AudioStreamPlayer" parent="."] [node name="Sfx展开信" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("4_ifhby") stream = ExtResource("4_ifhby")
volume_db = -5.0 volume_db = -5.0
bus = &"game_sfx" bus = &"game_sfx"

View File

@ -21,14 +21,12 @@ process_mode = 3
script = ExtResource("1_8dnsb") script = ExtResource("1_8dnsb")
[node name="SfxOpen" type="AudioStreamPlayer" parent="."] [node name="SfxOpen" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("2_v1oku") stream = ExtResource("2_v1oku")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_a3uyd") script = ExtResource("3_a3uyd")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="SfxClose" type="AudioStreamPlayer" parent="."] [node name="SfxClose" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("4_ombcf") stream = ExtResource("4_ombcf")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("3_a3uyd") script = ExtResource("3_a3uyd")

View File

@ -31,14 +31,12 @@ mouse_filter = 2
script = ExtResource("1_2ekqi") script = ExtResource("1_2ekqi")
[node name="SfxOpen" type="AudioStreamPlayer" parent="."] [node name="SfxOpen" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("2_6kwyk") stream = ExtResource("2_6kwyk")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("2_q0myv") script = ExtResource("2_q0myv")
metadata/_custom_type_script = "uid://rq6w1vuhuq1m" metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
[node name="SfxClose" type="AudioStreamPlayer" parent="."] [node name="SfxClose" type="AudioStreamPlayer" parent="."]
process_mode = 1
stream = ExtResource("4_4g76p") stream = ExtResource("4_4g76p")
bus = &"game_sfx" bus = &"game_sfx"
script = ExtResource("2_q0myv") script = ExtResource("2_q0myv")