diff --git a/asset/audio/sfx/交互/第二章/sfx_刀落下.ogg b/asset/audio/sfx/交互/第二章/sfx_刀落下.ogg index 15912eaa..48de830f 100644 Binary files a/asset/audio/sfx/交互/第二章/sfx_刀落下.ogg and b/asset/audio/sfx/交互/第二章/sfx_刀落下.ogg differ diff --git a/asset/audio/sfx/交互/第二章/sfx_吃肉.ogg b/asset/audio/sfx/交互/第二章/sfx_吃肉.ogg index 64673e62..ad1c76b5 100644 Binary files a/asset/audio/sfx/交互/第二章/sfx_吃肉.ogg and b/asset/audio/sfx/交互/第二章/sfx_吃肉.ogg differ diff --git a/asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg b/asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg new file mode 100644 index 00000000..e728e547 Binary files /dev/null and b/asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg differ diff --git a/asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg.import b/asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg.import new file mode 100644 index 00000000..c2342694 --- /dev/null +++ b/asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://caluk26pvu26f" +path="res://.godot/imported/sfx_吃肉演出.ogg-3e85b55b88eb0f6af91d3c0a5d408393.oggvorbisstr" + +[deps] + +source_file="res://asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg" +dest_files=["res://.godot/imported/sfx_吃肉演出.ogg-3e85b55b88eb0f6af91d3c0a5d408393.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/asset/audio/sfx/交互/第二章/sfx_山体崩塌.ogg b/asset/audio/sfx/交互/第二章/sfx_山体崩塌.ogg index b4a86014..9835f9aa 100644 Binary files a/asset/audio/sfx/交互/第二章/sfx_山体崩塌.ogg and b/asset/audio/sfx/交互/第二章/sfx_山体崩塌.ogg differ diff --git a/asset/audio/sfx/交互/第二章/sfx_恐怖手.ogg b/asset/audio/sfx/交互/第二章/sfx_恐怖手.ogg index 0061e2a8..86c4d878 100644 Binary files a/asset/audio/sfx/交互/第二章/sfx_恐怖手.ogg and b/asset/audio/sfx/交互/第二章/sfx_恐怖手.ogg differ diff --git a/asset/audio/sfx/交互/第二章/sfx_肉掉下来.ogg b/asset/audio/sfx/交互/第二章/sfx_肉掉下来.ogg index 0e0d5075..d5f8f77b 100644 Binary files a/asset/audio/sfx/交互/第二章/sfx_肉掉下来.ogg and b/asset/audio/sfx/交互/第二章/sfx_肉掉下来.ogg differ diff --git a/asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg b/asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg new file mode 100644 index 00000000..11eadbc0 Binary files /dev/null and b/asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg differ diff --git a/asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg.import b/asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg.import new file mode 100644 index 00000000..c29ba049 --- /dev/null +++ b/asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bdbd4rbr708n1" +path="res://.godot/imported/胖子游戏_MX_Atmos_Thunder_CT.ogg-3e295ab8450c167f0280b02f90320be7.oggvorbisstr" + +[deps] + +source_file="res://asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg" +dest_files=["res://.godot/imported/胖子游戏_MX_Atmos_Thunder_CT.ogg-3e295ab8450c167f0280b02f90320be7.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0.0 +bpm=0.0 +beat_count=0 +bar_beats=4 diff --git a/config/audio/sfx/footstep_胖子游戏.tres b/config/audio/sfx/footstep_胖子游戏.tres index d16cef86..15b11ad9 100644 --- a/config/audio/sfx/footstep_胖子游戏.tres +++ b/config/audio/sfx/footstep_胖子游戏.tres @@ -7,4 +7,4 @@ [resource] script = ExtResource("3_soveh") audios = Array[AudioStream]([ExtResource("1_vboyp"), ExtResource("2_evogo")]) -db = -7 +db = -15 diff --git a/scene/ground/scene/c03/s07_屠宰间.tscn b/scene/ground/scene/c03/s07_屠宰间.tscn index 8a3aa8c9..4874bb73 100644 --- a/scene/ground/scene/c03/s07_屠宰间.tscn +++ b/scene/ground/scene/c03/s07_屠宰间.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=40 format=3 uid="uid://c67732f2we13j"] +[gd_scene load_steps=41 format=3 uid="uid://c67732f2we13j"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_oxs1j"] [ext_resource type="Script" uid="uid://dh5vxhnfnua3q" path="res://scene/ground/scene/c03/s07_屠宰间.gd" id="2_oxs1j"] @@ -32,6 +32,7 @@ [ext_resource type="Texture2D" uid="uid://cylsq5cvhlp18" path="res://asset/art/tool/point_light.png" id="21_qeidq"] [ext_resource type="Script" uid="uid://deysfedtyjlig" path="res://scene/ground/script/c03/s07_event胖子游戏结束演出.gd" id="22_fuomw"] [ext_resource type="Script" uid="uid://cphfob11f7atx" path="res://addons/property-inspector/pro_animation_sprite2d/pro_animated_sprite.gd" id="23_u2kpr"] +[ext_resource type="AudioStream" uid="uid://bedrm5nxuuk5r" path="res://asset/audio/sfx/交互/第二章/棺材怪脚步氛围音效.ogg" id="27_88y7q"] [ext_resource type="SpriteFrames" uid="uid://b7fhheih1hbvf" path="res://config/animation/entity_sprite_frames.tres" id="28_2kdsp"] [ext_resource type="PackedScene" uid="uid://jr1yd46wm5je" path="res://scene/entity/note.tscn" id="32_14jxf"] @@ -290,6 +291,13 @@ color = Color(0.940296, 0.960906, 0.986459, 1) energy = 0.6 texture = ExtResource("21_qeidq") +[node name="Sfx棺材怪移动amb" type="AudioStreamPlayer" parent="Ground/DeployLayer/Event胖子游戏结束演出"] +stream = ExtResource("27_88y7q") +volume_db = -5.0 +bus = &"game_sfx" +script = ExtResource("4_t8dkf") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + [node name="长桌" type="Sprite2D" parent="Ground/DeployLayer" index="9"] z_index = 10 position = Vector2(345, 88) diff --git a/scene/ground/scene/c03/s10_胖子游戏1.gd b/scene/ground/scene/c03/s10_胖子游戏1.gd index 158283c3..e6c4672a 100644 --- a/scene/ground/scene/c03/s10_胖子游戏1.gd +++ b/scene/ground/scene/c03/s10_胖子游戏1.gd @@ -12,6 +12,7 @@ func _ready() -> void: if Engine.is_editor_hint(): return + var player: MainPlayer #region node_reference @@ -60,7 +61,6 @@ func _on_ground_ready() -> void: _do_enter_scene() - #0: 初始化; 1-3 三关 var current_stage := 0 var aiming_duration := 2.5 @@ -108,6 +108,7 @@ func _tween_display_label(node) -> void: var label = node.get_node("Label") label.modulate.a = 0.0 label.show() + $"Sfx诡异红字".play() var tween = create_tween() tween.tween_property(label, "modulate:a", 1.0, 0.5) tween.tween_interval(5.0) @@ -169,7 +170,8 @@ func drop_meat_hill_3() -> void: # monster.mute = false var monster_light = monster.get_node("PointLight2D怪光") as PointLight2D var tween = create_tween() - tween.tween_property(monster_light, "energy", 0.0, 1.0) + tween.tween_property(monster, "self_modulate:a", 1.0, 1.0) + tween.parallel().tween_property(monster_light, "energy", 0.0, 1.0) tween.tween_callback(func(): monster_light.blend_mode = Light2D.BLEND_MODE_SUB) tween.tween_property(monster_light, "energy", 0.4, 1.0) tween.tween_callback(func(): @@ -217,6 +219,7 @@ func _do_enter_scene() -> void: player.global_position.x = portal_x SceneManager.lock_player(0, 5, true) SceneManager.pause_and_hide_player_sprite(4.5) + Util.timer(5.0, $"Sfx胖子掉落".play) await player.animation_finished SceneManager.unlock_player() set_data("has_entered", true) @@ -234,4 +237,9 @@ func _run_game() -> void: func chop_shake() -> void: var camera = SceneManager.get_camera_marker() - camera.shake_camera(4.0) \ No newline at end of file + camera.shake_camera(4.0) + +func _on_timer_lightning_timeout() -> void: + # 打雷循环 + var wait = randf_range(5, 30) + $"Timer打雷".start(wait) diff --git a/scene/ground/scene/c03/s10_胖子游戏1.tscn b/scene/ground/scene/c03/s10_胖子游戏1.tscn index 54d31d87..3d51a962 100644 --- a/scene/ground/scene/c03/s10_胖子游戏1.tscn +++ b/scene/ground/scene/c03/s10_胖子游戏1.tscn @@ -1,8 +1,8 @@ -[gd_scene load_steps=41 format=3 uid="uid://clgwc3jcqarpe"] +[gd_scene load_steps=43 format=3 uid="uid://clgwc3jcqarpe"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_0c2p2"] [ext_resource type="Script" uid="uid://cs4ddcjq81c1d" path="res://scene/ground/scene/c03/s10_胖子游戏1.gd" id="2_tthij"] -[ext_resource type="AudioStream" uid="uid://dvc2emnfcmabx" path="res://asset/audio/sfx/环境音/白噪音/白噪声楼道1.ogg" id="3_7f2bb"] +[ext_resource type="AudioStream" uid="uid://bdbd4rbr708n1" path="res://asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg" id="3_4ialo"] [ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_60xwi"] [ext_resource type="Texture2D" uid="uid://b22lmq2qtsmf1" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/最后的背景 循环贴图.png" id="5_a608f"] [ext_resource type="AudioStream" uid="uid://df2ep7ae3gutx" path="res://asset/audio/sfx/交互/第二章/sfx_肉掉下来.ogg" id="5_v1flc"] @@ -12,6 +12,8 @@ [ext_resource type="Texture2D" uid="uid://dpt0s2ujvcjs5" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/肉山前 可以和背景移动速度不一样 循环贴图.png" id="7_8s7iq"] [ext_resource type="Texture2D" uid="uid://jimhy0dgkeoi" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/地面.png" id="8_2van8"] [ext_resource type="Texture2D" uid="uid://ditusmce10u83" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第二段/肉山.png" id="8_o5hrx"] +[ext_resource type="AudioStream" uid="uid://civuwccn6v6yk" path="res://asset/audio/sfx/交互/第一章/sfx_闷雷声.ogg" id="8_yuiif"] +[ext_resource type="AudioStream" uid="uid://ko5kibky8hcw" path="res://asset/audio/sfx/交互/第一章/红字特效音.ogg" id="9_foav5"] [ext_resource type="Texture2D" uid="uid://bo3at7wmybm00" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第二段/肉山门遮挡.png" id="9_g6bno"] [ext_resource type="Script" uid="uid://d800iqh7jeqa" path="res://scene/ground/script/c03/胖子游戏棺材怪.gd" id="9_js8ld"] [ext_resource type="Texture2D" uid="uid://q3n7lw1ngoqh" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/遮罩 循环贴图.png" id="9_podki"] @@ -355,7 +357,7 @@ libraries = { script = ExtResource("2_tthij") [node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"] -stream = ExtResource("3_7f2bb") +stream = ExtResource("3_4ialo") volume_db = -5.0 autoplay = true bus = &"game_sfx" @@ -371,7 +373,13 @@ bus = &"game_sfx" script = ExtResource("4_60xwi") metadata/_custom_type_script = "uid://rq6w1vuhuq1m" -[node name="Sfx恐怖手" type="AudioStreamPlayer2D" parent="Ground/AnimationPlayer" index="2"] +[node name="Sfx胖子掉落" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"] +stream = ExtResource("5_v1flc") +bus = &"game_sfx" +script = ExtResource("4_60xwi") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + +[node name="Sfx恐怖手" type="AudioStreamPlayer2D" parent="Ground/AnimationPlayer" index="3"] position = Vector2(8921, 11) stream = ExtResource("6_4ialo") volume_db = 10.0 @@ -383,6 +391,23 @@ script = ExtResource("10_f57cq") loop = true metadata/_custom_type_script = "uid://wapo47a1oddf" +[node name="Sfx打雷" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"] +stream = ExtResource("8_yuiif") +bus = &"game_sfx" +script = ExtResource("4_60xwi") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + +[node name="Timer打雷" type="Timer" parent="Ground/AnimationPlayer" index="5"] +wait_time = 10.0 +autostart = true + +[node name="Sfx诡异红字" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="6"] +stream = ExtResource("9_foav5") +volume_db = -20.0 +bus = &"game_sfx" +script = ExtResource("4_60xwi") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + [node name="BGSprite2D" parent="Ground" index="2"] light_mask = 5 offset = Vector2(0, -158) @@ -909,6 +934,8 @@ texture = ExtResource("13_8ancs") position = Vector2(724, -47) texture = ExtResource("14_bm1fy") +[connection signal="timeout" from="Ground/AnimationPlayer/Timer打雷" to="Ground/AnimationPlayer" method="_on_timer_lightning_timeout"] +[connection signal="timeout" from="Ground/AnimationPlayer/Timer打雷" to="Ground/AnimationPlayer/Sfx打雷" method="play"] [connection signal="timeout" from="Ground/DeployLayer/ChopTimer" to="Ground/AnimationPlayer" method="_on_chop_timer_timeout"] [editable path="Ground"] diff --git a/scene/ground/scene/c03/s11_胖子游戏2.gd b/scene/ground/scene/c03/s11_胖子游戏2.gd index 4c1b9b02..d412bd26 100644 --- a/scene/ground/scene/c03/s11_胖子游戏2.gd +++ b/scene/ground/scene/c03/s11_胖子游戏2.gd @@ -80,3 +80,8 @@ func _drop_meat(progress: float, start_y: float, target_y: float) -> void: var y = start_y + (target_y - start_y) * progress meat_hill.global_position.y = y meat_hill.global_position.x = player.global_position.x + +func _on_timer_lightning_timeout() -> void: + # 打雷循环 + var wait = randf_range(5, 30) + $"Timer打雷".start(wait) diff --git a/scene/ground/scene/c03/s11_胖子游戏2.tscn b/scene/ground/scene/c03/s11_胖子游戏2.tscn index d8a8e594..0b83269f 100644 --- a/scene/ground/scene/c03/s11_胖子游戏2.tscn +++ b/scene/ground/scene/c03/s11_胖子游戏2.tscn @@ -1,8 +1,8 @@ -[gd_scene load_steps=22 format=3 uid="uid://shgrg8qcr1cu"] +[gd_scene load_steps=23 format=3 uid="uid://shgrg8qcr1cu"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_lfcjf"] [ext_resource type="Script" uid="uid://fejtkano6pn7" path="res://scene/ground/scene/c03/s11_胖子游戏2.gd" id="2_lfcjf"] -[ext_resource type="AudioStream" uid="uid://dvc2emnfcmabx" path="res://asset/audio/sfx/环境音/白噪音/白噪声楼道1.ogg" id="3_hx2uj"] +[ext_resource type="AudioStream" uid="uid://bdbd4rbr708n1" path="res://asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg" id="3_62pbf"] [ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_0w5fd"] [ext_resource type="AudioStream" uid="uid://7ifxbe8eaxpj" path="res://asset/audio/sfx/交互/第二章/sfx_胖子被肉砸死.ogg" id="5_novpu"] [ext_resource type="Texture2D" uid="uid://b1t0o8vqwjirh" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第三段/山顶.png" id="5_wqrgj"] @@ -12,6 +12,7 @@ [ext_resource type="Texture2D" uid="uid://cyyu18eets1f7" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第三段/效果图.png" id="6_srx6n"] [ext_resource type="Script" uid="uid://wapo47a1oddf" path="res://scene/entity/audio/sfx2d.gd" id="7_18lag"] [ext_resource type="Script" uid="uid://cphfob11f7atx" path="res://addons/property-inspector/pro_animation_sprite2d/pro_animated_sprite.gd" id="7_hx2uj"] +[ext_resource type="AudioStream" uid="uid://civuwccn6v6yk" path="res://asset/audio/sfx/交互/第一章/sfx_闷雷声.ogg" id="8_62pbf"] [ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="9_0w5fd"] [ext_resource type="Texture2D" uid="uid://c3gwj6ap8w7cj" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第三段/山顶文物.png" id="10_lyjg2"] [ext_resource type="Texture2D" uid="uid://2hvfbno7wgjl" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/肉块4.png" id="12_0ry88"] @@ -39,7 +40,7 @@ libraries = { script = ExtResource("2_lfcjf") [node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"] -stream = ExtResource("3_hx2uj") +stream = ExtResource("3_62pbf") volume_db = -5.0 autoplay = true bus = &"game_sfx" @@ -66,6 +67,17 @@ script = ExtResource("7_18lag") loop = true metadata/_custom_type_script = "uid://wapo47a1oddf" +[node name="Sfx打雷" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"] +stream = ExtResource("8_62pbf") +volume_db = 10.0 +bus = &"game_sfx" +script = ExtResource("4_0w5fd") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + +[node name="Timer打雷" type="Timer" parent="Ground/AnimationPlayer" index="4"] +wait_time = 10.0 +autostart = true + [node name="BGSprite2D" parent="Ground" index="2"] light_mask = 5 texture = ExtResource("5_wqrgj") @@ -223,4 +235,7 @@ points = PackedVector2Array(290, 150, 1000, 151) energy = 0.6 blend_mode = 1 +[connection signal="timeout" from="Ground/AnimationPlayer/Timer打雷" to="Ground/AnimationPlayer" method="_on_timer_lightning_timeout"] +[connection signal="timeout" from="Ground/AnimationPlayer/Timer打雷" to="Ground/AnimationPlayer/Sfx打雷" method="play"] + [editable path="Ground"] diff --git a/scene/ground/scene/c03/s12_胖子游戏3.gd b/scene/ground/scene/c03/s12_胖子游戏3.gd index 63c929b6..1002f179 100644 --- a/scene/ground/scene/c03/s12_胖子游戏3.gd +++ b/scene/ground/scene/c03/s12_胖子游戏3.gd @@ -68,9 +68,10 @@ func _on_eat_meat_triggered(node) -> void: var player = SceneManager.get_player() # 吃肉动作 SceneManager.lock_player(0, 8) - $"Sfx吃肉".play() var tween = create_tween() - tween.tween_interval(0.9) + tween.tween_interval(0.4) + tween.tween_callback($"Sfx吃肉".play) + tween.tween_interval(0.5) tween.tween_property(node, "self_modulate:a", 0.0, 1.0) await player.animation_finished SceneManager.unlock_player() @@ -80,6 +81,7 @@ func _tween_display_label(node) -> void: var label = node.get_node("Label") label.modulate.a = 0.0 label.show() + $"Sfx诡异红字".play() var tween = create_tween() tween.tween_property(label, "modulate:a", 1.0, 0.5) tween.tween_interval(5.0) @@ -117,6 +119,7 @@ func eat_meat() -> void: var player = SceneManager.get_player() as MainPlayer player.reparent_light(light_pivot) play("eat_meat") + Util.timer(2.4, $"Sfx吃肉演出".play) await animation_finished # 将 final_label 放置到 transition_layer SceneManager.transition_with_layer(final_label, 2.0, 4.0) @@ -167,4 +170,8 @@ func collapse() -> void: camera.apply_limits(default_limit_rect) create_tween().tween_property(label, "modulate:a", 0.0, 1.0) - \ No newline at end of file + +func _on_timer_lightning_timeout() -> void: + # 打雷循环 + var wait = randf_range(5, 30) + $"Timer打雷".start(wait) diff --git a/scene/ground/scene/c03/s12_胖子游戏3.tscn b/scene/ground/scene/c03/s12_胖子游戏3.tscn index d2af12ca..c4ca5d94 100644 --- a/scene/ground/scene/c03/s12_胖子游戏3.tscn +++ b/scene/ground/scene/c03/s12_胖子游戏3.tscn @@ -1,18 +1,21 @@ -[gd_scene load_steps=27 format=3 uid="uid://cxabqg87g4vxc"] +[gd_scene load_steps=30 format=3 uid="uid://cxabqg87g4vxc"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_ly8ge"] [ext_resource type="Script" uid="uid://f4uampm47832" path="res://scene/ground/scene/c03/s12_胖子游戏3.gd" id="2_c01lu"] -[ext_resource type="AudioStream" uid="uid://dvc2emnfcmabx" path="res://asset/audio/sfx/环境音/白噪音/白噪声楼道1.ogg" id="3_h404e"] +[ext_resource type="AudioStream" uid="uid://bdbd4rbr708n1" path="res://asset/audio/sfx/环境音/第二章/胖子游戏_MX_Atmos_Thunder_CT.ogg" id="3_hps3f"] [ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_fjio5"] [ext_resource type="AudioStream" uid="uid://c65vyjloanxpy" path="res://asset/audio/sfx/交互/第二章/sfx_山体崩塌.ogg" id="5_7x1vi"] [ext_resource type="AudioStream" uid="uid://bhaws2ungqaf5" path="res://asset/audio/sfx/交互/角色/sfx_哼歌.ogg" id="5_47wdn"] [ext_resource type="AudioStream" uid="uid://bmtinnj0soddh" path="res://asset/audio/sfx/交互/第二章/sfx_吃肉.ogg" id="6_sul0a"] [ext_resource type="Script" uid="uid://wapo47a1oddf" path="res://scene/entity/audio/sfx2d.gd" id="6_vyyx8"] +[ext_resource type="AudioStream" uid="uid://caluk26pvu26f" path="res://asset/audio/sfx/交互/第二章/sfx_吃肉演出.ogg" id="7_5finr"] [ext_resource type="Texture2D" uid="uid://jimhy0dgkeoi" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/地面.png" id="9_fjio5"] [ext_resource type="Texture2D" uid="uid://b22lmq2qtsmf1" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/最后的背景 循环贴图.png" id="9_mr0pm"] +[ext_resource type="AudioStream" uid="uid://civuwccn6v6yk" path="res://asset/audio/sfx/交互/第一章/sfx_闷雷声.ogg" id="9_qjsj1"] [ext_resource type="Script" uid="uid://cphfob11f7atx" path="res://addons/property-inspector/pro_animation_sprite2d/pro_animated_sprite.gd" id="9_vyyx8"] [ext_resource type="SpriteFrames" uid="uid://cb3b44a1jpybb" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第四段/c03_胖子游戏第四段_frames.tres" id="10_7x1vi"] [ext_resource type="Texture2D" uid="uid://dd8vkws24b5vy" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/肉山后 可以和背景移动速度不一样 循环贴图.png" id="10_47wdn"] +[ext_resource type="AudioStream" uid="uid://ko5kibky8hcw" path="res://asset/audio/sfx/交互/第一章/红字特效音.ogg" id="10_hps3f"] [ext_resource type="FontFile" uid="uid://bnxdsxp7dst7f" path="res://asset/font/锐字太空混元像素简繁-闪 超黑_mianfeiziti.com.ttf" id="11_mr0pm"] [ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="11_sul0a"] [ext_resource type="Texture2D" uid="uid://dpt0s2ujvcjs5" path="res://asset/art/gif/c03_胖子游戏/c03_胖子游戏第一段/肉山前 可以和背景移动速度不一样 循环贴图.png" id="11_vyyx8"] @@ -127,7 +130,7 @@ libraries = { script = ExtResource("2_c01lu") [node name="Sfx背景音" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"] -stream = ExtResource("3_h404e") +stream = ExtResource("3_hps3f") volume_db = -5.0 autoplay = true bus = &"game_sfx" @@ -139,7 +142,7 @@ metadata/_custom_type_script = "uid://rq6w1vuhuq1m" [node name="Sfx山塌了" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="1"] stream = ExtResource("5_7x1vi") -volume_db = 24.0 +volume_db = 15.0 bus = &"game_sfx" script = ExtResource("4_fjio5") metadata/_custom_type_script = "uid://rq6w1vuhuq1m" @@ -150,7 +153,13 @@ bus = &"game_sfx" script = ExtResource("4_fjio5") metadata/_custom_type_script = "uid://rq6w1vuhuq1m" -[node name="Sfx小蝉哼歌" type="AudioStreamPlayer2D" parent="Ground/AnimationPlayer" index="3"] +[node name="Sfx吃肉演出" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"] +stream = ExtResource("7_5finr") +bus = &"game_sfx" +script = ExtResource("4_fjio5") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + +[node name="Sfx小蝉哼歌" type="AudioStreamPlayer2D" parent="Ground/AnimationPlayer" index="4"] position = Vector2(7155, 89) stream = ExtResource("5_47wdn") volume_db = 20.0 @@ -158,6 +167,23 @@ bus = &"game_sfx" script = ExtResource("6_vyyx8") metadata/_custom_type_script = "uid://wapo47a1oddf" +[node name="Sfx打雷" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="5"] +stream = ExtResource("9_qjsj1") +bus = &"game_sfx" +script = ExtResource("4_fjio5") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + +[node name="Timer打雷" type="Timer" parent="Ground/AnimationPlayer" index="6"] +wait_time = 10.0 +autostart = true + +[node name="Sfx诡异红字" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="7"] +stream = ExtResource("10_hps3f") +volume_db = -20.0 +bus = &"game_sfx" +script = ExtResource("4_fjio5") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + [node name="BGSprite2D" parent="Ground" index="2"] light_mask = 5 position = Vector2(2797, 0) @@ -527,4 +553,7 @@ range_layer_max = 10 range_item_cull_mask = 2 texture = ExtResource("13_vyyx8") +[connection signal="timeout" from="Ground/AnimationPlayer/Timer打雷" to="Ground/AnimationPlayer" method="_on_timer_lightning_timeout"] +[connection signal="timeout" from="Ground/AnimationPlayer/Timer打雷" to="Ground/AnimationPlayer/Sfx打雷" method="play"] + [editable path="Ground"] diff --git a/scene/ground/script/c03/s03_closeup癞子纸人.gd b/scene/ground/script/c03/s03_closeup癞子纸人.gd index f3a17767..30084b98 100644 --- a/scene/ground/script/c03/s03_closeup癞子纸人.gd +++ b/scene/ground/script/c03/s03_closeup癞子纸人.gd @@ -42,17 +42,16 @@ func _check_if_notify_to_use_prop() -> void: SceneManager.pop_center_notification("ui_center_notify_use_prop") EventManager.set_stage_if_greater("handnote_c03_prop_scissors", 1) else: - var label = $"Container/RichTextLabel" - label.show() - label.modulate.a = 0.0 - var tween = create_tween() - tween.tween_property(label, "modulate:a", 1.0, 1.0) - tween.tween_interval(3.5) - tween.tween_property(label, "modulate:a", 0.0, 1.0) - # SceneManager.pop_center_notification("ui_center_notify_lack_of_scissor") - # TODO - SceneManager.pop_debug_dialog_info("音效", "诡异") - $"Sfx不要剪刀诡异音效".play() + # var label = $"Container/RichTextLabel" + # label.show() + # label.modulate.a = 0.0 + # var tween = create_tween() + # tween.tween_property(label, "modulate:a", 1.0, 1.0) + # tween.tween_interval(3.5) + # tween.tween_property(label, "modulate:a", 0.0, 1.0) + # SceneManager.pop_debug_dialog_info("音效", "诡异") + # $"Sfx不要剪刀诡异音效".play() + SceneManager.pop_center_notification("ui_center_notify_use_prop") func _unhandled_input(event: InputEvent) -> void: diff --git a/scene/ground/script/c03/s04_closeup李氏纸人.gd b/scene/ground/script/c03/s04_closeup李氏纸人.gd index 74e15bce..a1b86f76 100644 --- a/scene/ground/script/c03/s04_closeup李氏纸人.gd +++ b/scene/ground/script/c03/s04_closeup李氏纸人.gd @@ -33,20 +33,21 @@ func _ready() -> void: # 0: 舌头; 1: 药 -func _display_label(id: int) -> void: - var label - if id == 0: - label = $"求舌头/RichTextLabel" - elif id == 1: - label = $"求药/RichTextLabel" - $"Sfx诡异的哑巴音效".play(4.0) - label.show() - label.modulate.a = 0.0 - var tween = create_tween() - tween.tween_property(label, "modulate:a", 1.0, 0.7) - tween.tween_interval(3.5) - tween.tween_property(label, "modulate:a", 0.0, 0.7) - tween.tween_callback(label.hide) +func _display_label(_id: int) -> void: + # var label + # if id == 0: + # label = $"求舌头/RichTextLabel" + # elif id == 1: + # label = $"求药/RichTextLabel" + # $"Sfx诡异的哑巴音效".play(4.0) + # label.show() + # label.modulate.a = 0.0 + # var tween = create_tween() + # tween.tween_property(label, "modulate:a", 1.0, 0.7) + # tween.tween_interval(3.5) + # tween.tween_property(label, "modulate:a", 0.0, 0.7) + # tween.tween_callback(label.hide) + SceneManager.pop_center_notification("ui_center_notify_use_prop") var paste_used := false diff --git a/scene/ground/script/c03/s07_event胖子游戏结束演出.gd b/scene/ground/script/c03/s07_event胖子游戏结束演出.gd index 9e6ba100..2f413471 100644 --- a/scene/ground/script/c03/s07_event胖子游戏结束演出.gd +++ b/scene/ground/script/c03/s07_event胖子游戏结束演出.gd @@ -45,6 +45,7 @@ func _fatty_game_finished_show() -> void: await tween.finished await Util.wait(0.5) monster.play("地下呼吸帧_准备走路") + Util.timer(1.0, $"Sfx棺材怪移动amb".play) # 切肉声消失 create_tween().tween_property(sfx_monster, "volume_db", -100.0, 1.0) create_tween().tween_property(sfx_laugh, "position:x", -500.0, 3.0).as_relative()