diff --git a/asset/audio/sfx/环境音/第一章/楼道怪声.ogg b/asset/audio/sfx/环境音/第一章/楼道怪声.ogg new file mode 100644 index 00000000..c4b59d8d Binary files /dev/null and b/asset/audio/sfx/环境音/第一章/楼道怪声.ogg differ diff --git a/asset/audio/sfx/环境音/第一章/楼道怪声.ogg.import b/asset/audio/sfx/环境音/第一章/楼道怪声.ogg.import new file mode 100644 index 00000000..4382f064 --- /dev/null +++ b/asset/audio/sfx/环境音/第一章/楼道怪声.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://cs5kdeolswovh" +path="res://.godot/imported/楼道怪声.ogg-3a2e7bfdbb70a0ddbdd29f69da6ac466.oggvorbisstr" + +[deps] + +source_file="res://asset/audio/sfx/环境音/第一章/楼道怪声.ogg" +dest_files=["res://.godot/imported/楼道怪声.ogg-3a2e7bfdbb70a0ddbdd29f69da6ac466.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/scene/ground/scene/c02/s02_过道.gd b/scene/ground/scene/c02/s02_过道.gd index a643cb25..d6165991 100644 --- a/scene/ground/scene/c02/s02_过道.gd +++ b/scene/ground/scene/c02/s02_过道.gd @@ -28,6 +28,7 @@ func _ready() -> void: func _on_ground_ready() -> void: + Util.timer(4.0, $"Sfx楼道怪声".play) wind_blows = $"../DeployLayer/WindBlows" if data.first_enter: wind_blows.visible = false diff --git a/scene/ground/scene/c02/s02_过道.tscn b/scene/ground/scene/c02/s02_过道.tscn index 11d7edd2..26b963ef 100644 --- a/scene/ground/scene/c02/s02_过道.tscn +++ b/scene/ground/scene/c02/s02_过道.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=32 format=3 uid="uid://brck77w81fhvc"] +[gd_scene load_steps=33 format=3 uid="uid://brck77w81fhvc"] [ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_wrr6r"] [ext_resource type="Script" uid="uid://bfrgnmde3hjn0" path="res://scene/ground/scene/c02/s02_过道.gd" id="2_5p8ev"] @@ -10,6 +10,7 @@ [ext_resource type="AudioStream" uid="uid://6oc0cgc3mbqb" 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="AudioStream" uid="uid://cs5kdeolswovh" path="res://asset/audio/sfx/环境音/第一章/楼道怪声.ogg" id="7_n6caa"] [ext_resource type="Texture2D" uid="uid://cvgw2mxrlr6io" path="res://asset/art/scene/c02/旧版/s02_走道/ux_进门鼠疫海报yz.png" id="7_wdwbi"] [ext_resource type="Texture2D" uid="uid://5pl1b7cor715" path="res://asset/art/scene/c02/旧版/s02_走道/e_纸人.png" id="7_xsghn"] [ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="8_52as8"] @@ -76,6 +77,13 @@ mode = "场景背景音" "感应玩家操作" = false metadata/_custom_type_script = "uid://rq6w1vuhuq1m" +[node name="Sfx楼道怪声" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"] +process_mode = 1 +stream = ExtResource("7_n6caa") +bus = &"game_sfx" +script = ExtResource("14_jg8g0") +metadata/_custom_type_script = "uid://rq6w1vuhuq1m" + [node name="BGSprite2D" parent="Ground" index="2"] self_modulate = Color(0.831373, 0.886275, 0.956863, 1) position = Vector2(-1, 0)