补充音效

This commit is contained in:
joylink_zhaoerwei 2024-05-15 13:44:54 +08:00
parent 5c7fbc02c2
commit 8245335ed8
18 changed files with 91 additions and 6 deletions

Binary file not shown.

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cro2lflu8b2ai"
path="res://.godot/imported/地铁关门警示音.mp3-cadcd6e6aeffb66818be0e0d8613c95c.mp3str"
[deps]
source_file="res://Assets/music/地铁关门警示音.mp3"
dest_files=["res://.godot/imported/地铁关门警示音.mp3-cadcd6e6aeffb66818be0e0d8613c95c.mp3str"]
[params]
loop=false
loop_offset=0.0
bpm=0.0
beat_count=0
bar_beats=4

BIN
Assets/music/点击.MP3 Normal file

Binary file not shown.

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://dai33tg2h3ml3"
path="res://.godot/imported/点击.MP3-59e5b79f56fb9ed852de99eb1e18a988.mp3str"
[deps]
source_file="res://Assets/music/点击.MP3"
dest_files=["res://.godot/imported/点击.MP3-59e5b79f56fb9ed852de99eb1e18a988.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

Binary file not shown.

View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cjl26xclgx7jk"
path="res://.godot/imported/转动钥匙.MP3-6145071c5bf4ab98b219d6cc4e6f774f.mp3str"
[deps]
source_file="res://Assets/music/转动钥匙.MP3"
dest_files=["res://.godot/imported/转动钥匙.MP3-6145071c5bf4ab98b219d6cc4e6f774f.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -31,6 +31,7 @@ func _on_jjtc_button_gui_input(event):
allClickJJTCSignal.emit('JJTCButton',$".")
if !allowHandle :
return
$JJTC_Button_Click.play()
func _on_jjtc_button_mouse_entered():

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://gjmtus0cnppi"]
[gd_scene load_steps=12 format=3 uid="uid://gjmtus0cnppi"]
[ext_resource type="Script" path="res://sceen/platform/JJTC_Box.gd" id="1_sa7p7"]
[ext_resource type="Script" path="res://UI/JJTC/jjlc.gd" id="1_ymor0"]
@ -10,6 +10,7 @@
[ext_resource type="AudioStream" uid="uid://c0j0dmes382ax" path="res://Assets/music/JJTC_Box_Voice.mp3" id="7_khtfn"]
[ext_resource type="Script" path="res://UI/JJTC/JJTC_Right_Rotate.gd" id="8_3qs6d"]
[ext_resource type="Script" path="res://UI/JJTC/JJTC_Left_Rotate.gd" id="9_c03t7"]
[ext_resource type="AudioStream" uid="uid://dai33tg2h3ml3" path="res://Assets/music/点击.MP3" id="11_by1qq"]
[node name="jjtc" type="Window"]
position = Vector2i(0, 36)
@ -81,6 +82,9 @@ script = ExtResource("9_c03t7")
[node name="JJTC_Box_Voice" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_khtfn")
[node name="JJTC_Button_Click" type="AudioStreamPlayer" parent="."]
stream = ExtResource("11_by1qq")
[connection signal="gui_input" from="JJTC_Button" to="." method="_on_jjtc_button_gui_input"]
[connection signal="mouse_entered" from="JJTC_Button" to="." method="_on_jjtc_button_mouse_entered"]
[connection signal="mouse_exited" from="JJTC_Button" to="." method="_on_jjtc_button_mouse_exited"]

View File

@ -39,3 +39,4 @@ func _input(event):
elif $"..".knob_state == $"..".KNOB_STATE.OPEN:
$"../LCBRotateAnimation".play("OpenToClose", -1, 10)
$"..".change_knob_state($"..".KNOB_STATE.CLOSE)
$"../AudioStreamPlayer".play()

View File

@ -39,3 +39,4 @@ func _input(event):
elif $"..".knob_state == $"..".KNOB_STATE.CLOSE:
$"../LCBRotateAnimation".play("CloseToOpen", -1, 10)
$"..".change_knob_state($"..".KNOB_STATE.OPEN)
$"../AudioStreamPlayer".play()

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=3 uid="uid://b41ml6vpfik6v"]
[gd_scene load_steps=18 format=3 uid="uid://b41ml6vpfik6v"]
[ext_resource type="Script" path="res://UI/LCB/lcb.gd" id="1_x2nee"]
[ext_resource type="Theme" uid="uid://dn8j4j5ct40v6" path="res://lcb_text.tres" id="2_pno1b"]
@ -8,6 +8,7 @@
[ext_resource type="Script" path="res://UI/LCB/LCB_Right_Rotate.gd" id="6_bg24u"]
[ext_resource type="Script" path="res://UI/LCB/LCB_Left_Rotate.gd" id="7_g7j6c"]
[ext_resource type="Texture2D" uid="uid://cpmlwpev7rvbp" path="res://Assets/打开钥匙面板钥匙.png" id="8_12p4y"]
[ext_resource type="AudioStream" uid="uid://cjl26xclgx7jk" path="res://Assets/music/转动钥匙.MP3" id="9_3w5im"]
[sub_resource type="Animation" id="Animation_1u8bl"]
resource_name = "AutoToClose"
@ -223,6 +224,9 @@ offset_bottom = 200.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("8_12p4y")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_3w5im")
[connection signal="gui_input" from="TextureRect2" to="." method="_on_texture_rect_2_gui_input"]
[connection signal="mouse_entered" from="TextureRect2" to="." method="_on_texture_rect_2_mouse_entered"]
[connection signal="mouse_exited" from="TextureRect2" to="." method="_on_texture_rect_2_mouse_exited"]

View File

@ -29,3 +29,4 @@ func _input(event):
if !$"../..".allowHandle :
return
$"../..".clickButtonSignal.emit(true,$"../..")
$"../AudioStreamPlayer".play()

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=5 format=3 uid="uid://c31r8s27j4dcm"]
[gd_scene load_steps=6 format=3 uid="uid://c31r8s27j4dcm"]
[ext_resource type="Script" path="res://UI/psl/button_model.gd" id="1_5equs"]
[ext_resource type="Texture2D" uid="uid://7aq7b45v8ubb" path="res://Assets/psl/按钮背景.png" id="2_25wt4"]
[ext_resource type="Texture2D" uid="uid://dsj7nbbmesf2c" path="res://Assets/psl/按钮_绿.png" id="3_ak2sf"]
[ext_resource type="Script" path="res://UI/psl/Button.gd" id="4_w4uq3"]
[ext_resource type="AudioStream" uid="uid://dai33tg2h3ml3" path="res://Assets/music/点击.MP3" id="5_rxhic"]
[node name="ButtonModel" type="VBoxContainer"]
scale = Vector2(0.6, 0.6)
@ -20,6 +21,9 @@ scale = Vector2(0.8, 0.8)
texture = ExtResource("3_ak2sf")
script = ExtResource("4_w4uq3")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Button"]
stream = ExtResource("5_rxhic")
[node name="MarginContainer" type="MarginContainer" parent="Button"]
layout_mode = 0
offset_right = 104.0

View File

@ -28,3 +28,4 @@ func _input(event):
$"../Key".rotation=-PI/6
$"../Keyhole".rotation=-PI/6
open_light.visible = !open_light.visible
$"../AudioStreamPlayer".play()

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=3 uid="uid://ur86pfy4w0so"]
[gd_scene load_steps=10 format=3 uid="uid://ur86pfy4w0so"]
[ext_resource type="Script" path="res://UI/psl/key_switch.gd" id="1_dkl8d"]
[ext_resource type="Texture2D" uid="uid://7aq7b45v8ubb" path="res://Assets/psl/按钮背景.png" id="1_ft2a2"]
@ -8,6 +8,7 @@
[ext_resource type="Texture2D" uid="uid://dyemyrw74u47v" path="res://Assets/psl/钥匙.png" id="5_ptmia"]
[ext_resource type="Texture2D" uid="uid://b7j3msd4bw0im" path="res://Assets/LCB_Arrow.svg" id="6_s6bbn"]
[ext_resource type="Script" path="res://UI/psl/key_right_rotate.gd" id="8_sbs8q"]
[ext_resource type="AudioStream" uid="uid://cjl26xclgx7jk" path="res://Assets/music/转动钥匙.MP3" id="9_8cbnr"]
[node name="KeySwitch" type="VBoxContainer"]
script = ExtResource("1_dkl8d")
@ -76,6 +77,9 @@ scale = Vector2(0.2, 0.2)
texture = ExtResource("6_s6bbn")
script = ExtResource("8_sbs8q")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Key"]
stream = ExtResource("9_8cbnr")
[node name="MarginContainer" type="MarginContainer" parent="Key"]
layout_mode = 0
offset_right = 104.0

View File

@ -7,7 +7,7 @@
[ext_resource type="PackedScene" uid="uid://bsr40ogx2e2ir" path="res://UI/station_keys/jjtc_key_control.tscn" id="2_cndsv"]
[ext_resource type="FontFile" uid="uid://bkbpyidjguavf" path="res://Assets/FeiHuaSongTi-2.ttf" id="2_mlqh2"]
[ext_resource type="PackedScene" uid="uid://biwdpy5pifxgi" path="res://UI/station_keys/lcb_key_control.tscn" id="2_xelwb"]
[ext_resource type="PackedScene" path="res://UI/station_keys/hsjc_key_control.tscn" id="9_q6qly"]
[ext_resource type="PackedScene" uid="uid://blixp06e6vnoe" path="res://UI/station_keys/hsjc_key_control.tscn" id="9_q6qly"]
[ext_resource type="AudioStream" uid="uid://di5nwer0mdafr" path="res://Assets/music/箭头提示音.mp3" id="10_cspe3"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1w22c"]

View File

@ -37,9 +37,11 @@ enum ScreenDoor_State{
if screenDoorState == ScreenDoor_State.opening :
left_animation_player.play("leftOpen")
right_animation_player.play("rightOpen")
$AudioStreamPlayer.play()
elif screenDoorState == ScreenDoor_State.closeing :
left_animation_player.play("leftClose")
right_animation_player.play("rightClose")
$AudioStreamPlayer.play()
##打开屏蔽门
func openScreenDoor (isUseLCBKey=false)-> void:

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=49 format=3 uid="uid://bc2dnsyx16kk6"]
[gd_scene load_steps=50 format=3 uid="uid://bc2dnsyx16kk6"]
[ext_resource type="Script" path="res://sceen/platform/screenDoor.gd" id="1_nse1y"]
[ext_resource type="Shader" path="res://shaders/mtd.gdshader" id="2_04fd1"]
@ -10,6 +10,7 @@
[ext_resource type="Script" path="res://sceen/platform/screenDoorArea3D.gd" id="5_8p3um"]
[ext_resource type="Texture2D" uid="uid://bywpyj1w7nk86" path="res://Model/textures/haerbin_jz_menkuangyanse_BL.png" id="6_8lvxg"]
[ext_resource type="Texture2D" uid="uid://bam8omg8k1bhe" path="res://Model/textures/2cengtietu_zst111.png" id="7_flsdv"]
[ext_resource type="AudioStream" uid="uid://cro2lflu8b2ai" path="res://Assets/music/地铁关门警示音.mp3" id="8_2gqu8"]
[ext_resource type="Texture2D" uid="uid://eogu2aigjbda" path="res://Model/textures/Gd_ZTM.jpg" id="8_aqfjl"]
[ext_resource type="Texture2D" uid="uid://co0ggcy26r38g" path="res://Model/textures/2cengtietu_zst.png" id="9_da8bg"]
[ext_resource type="AudioStream" uid="uid://k0e2shfdjyrq" path="res://Assets/music/glass-breaking.mp3" id="9_kpf37"]
@ -507,6 +508,10 @@ libraries = {
"": SubResource("AnimationLibrary_u6vct")
}
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("8_2gqu8")
volume_db = -5.0
[node name="screenDoorArea3D" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.0445185)
script = ExtResource("5_8p3um")