lightswitch noise

This commit is contained in:
Paul Black 2023-03-12 00:58:33 -07:00
parent ebeb6d16e1
commit 7786130eca
3 changed files with 23 additions and 0 deletions

View file

@ -93,3 +93,7 @@ func _on_credits_button_mouse_exited():
func _on_light_button_pressed(): func _on_light_button_pressed():
Global.menuLightSwitch = true Global.menuLightSwitch = true
var audiostream = AudioStreamPlayer.new()
audiostream.set_stream(load("res://sounds/light-switch.mp3"))
add_child(audiostream)
audiostream.play()

BIN
sounds/light-switch.mp3 Normal file

Binary file not shown.

View file

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cb8m27angg8o2"
path="res://.godot/imported/light-switch.mp3-ef63c37e483a0fc14d4caa81ea8e8f3d.mp3str"
[deps]
source_file="res://sounds/light-switch.mp3"
dest_files=["res://.godot/imported/light-switch.mp3-ef63c37e483a0fc14d4caa81ea8e8f3d.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4