猫鼠游戏 bgm

This commit is contained in:
cakipaul 2025-06-26 02:03:21 +08:00
parent 934b6ca360
commit 7210fc86a6
2 changed files with 10 additions and 6 deletions

View File

@ -121,6 +121,7 @@ func game_intro() -> void:
func _game_counting_down(_res = null):
$"Sfx猫鼠游戏".play()
SceneManager.release_player()
# 重置镜头
SceneManager.focus_player_and_reset_zoom(2.5)
@ -273,6 +274,7 @@ func game_restart():
ground_loader.toggle_mask(false, Color.BLACK, 1.0)
await get_tree().create_timer(1.0).timeout
SceneManager.release_player()
$"Sfx猫鼠游戏".set("parameters/switch_to_clip", "Intro")
await get_tree().create_timer(2.0).timeout
_kids_start_run()

View File

@ -77,20 +77,21 @@ _data = {
clip_count = 2
clip_0/name = &"Intro"
clip_0/stream = ExtResource("6_lxxek")
clip_0/auto_advance = 0
clip_0/auto_advance = 1
clip_0/next_clip = 1
clip_1/name = &"Loop"
clip_1/stream = ExtResource("7_phfqg")
clip_1/auto_advance = 0
_transitions = {
Vector2i(0, 1): {
"fade_beats": 1.0,
"fade_mode": 4,
"fade_mode": 0,
"from_time": 0,
"to_time": 1
},
Vector2i(1, 1): {
"fade_beats": 1.0,
"fade_mode": 4,
"fade_mode": 0,
"from_time": 0,
"to_time": 1
}
@ -101,11 +102,11 @@ size = Vector2(20, 50)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ceat6"]
resource_local_to_scene = true
size = Vector2(10, 70)
size = Vector2(25, 70)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7cdhx"]
resource_local_to_scene = true
size = Vector2(30, 70)
size = Vector2(25, 70)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_jw18h"]
noise_type = 2
@ -172,6 +173,7 @@ loop = true
[node name="Sfx猫鼠游戏" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
stream = SubResource("AudioStreamInteractive_af0pm")
volume_db = -17.0
bus = &"game_sfx"
script = ExtResource("8_1g8pi")
mode = "BGM"
@ -727,7 +729,7 @@ offset = Vector2(0, -159)
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
points = PackedVector2Array(37, 150, 4000, 150)
[node name="DirectionalLight2D" parent="Ground" index="8"]
[node name="DirectionalLight2D" parent="Ground" index="7"]
visible = false
[node name="书店外" type="Node2D" parent="Ground"]