mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Added BGM and Button SFX sounds
This commit is contained in:
16
godot_ship/scenes/AudioController.tscn
Normal file
16
godot_ship/scenes/AudioController.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://BGM - Captain Scurvy.ogg" type="AudioStream" id=1]
|
||||
[ext_resource path="res://script/audio controller/AudioController.gd" type="Script" id=2]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="BGM" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 1 )
|
||||
autoplay = true
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://script/options/Option-Background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://script/options/Options.gd" type="Script" id=2]
|
||||
[ext_resource path="res://ButtonSFX.ogg" type="AudioStream" id=3]
|
||||
|
||||
[node name="Options" type="Control"]
|
||||
anchor_right = 1.0
|
||||
@@ -153,6 +154,9 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 3 )
|
||||
|
||||
[connection signal="value_changed" from="Sliders/SFX Setting/SFX Slider" to="." method="_on_SFX_Slider_value_changed"]
|
||||
[connection signal="value_changed" from="Sliders/Volume Setting/Volume Slider" to="." method="_on_Volume_Slider_value_changed"]
|
||||
[connection signal="pressed" from="Buttons/Light" to="." method="_on_Light_pressed"]
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://script/title screen/Title-Screen-Background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://script/title screen/Title Screen.gd" type="Script" id=2]
|
||||
[ext_resource path="res://ButtonSFX.ogg" type="AudioStream" id=3]
|
||||
|
||||
[node name="Title Node" type="Control"]
|
||||
anchor_right = 1.0
|
||||
@@ -15,6 +16,9 @@ __meta__ = {
|
||||
position = Vector2( 320, 180 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="ButtonSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 3 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
|
||||
Reference in New Issue
Block a user