aboutsummaryrefslogtreecommitdiff
path: root/client/audio
diff options
context:
space:
mode:
Diffstat (limited to 'client/audio')
-rw-r--r--client/audio/sound.gd4
-rw-r--r--client/audio/sound.tscn7
2 files changed, 10 insertions, 1 deletions
diff --git a/client/audio/sound.gd b/client/audio/sound.gd
index 5b875b4e..8c7649aa 100644
--- a/client/audio/sound.gd
+++ b/client/audio/sound.gd
@@ -17,6 +17,7 @@ extends Node
@onready var click_sound = $UI/Click
@onready var hover_sound = $UI/Hover
+@onready var game_start_sound = $UI/GameStart
@onready var music_node : Node = $Music
var item_sounds: Dictionary = {}
@@ -45,6 +46,9 @@ func play_click():
func play_hover():
hover_sound.play()
+func play_game_start():
+ game_start_sound.play()
+
func play_hover_maybe(element):
# Don't play hover sound when focus is changed by clicking using a mouse.
# TODO: Clean up this code and find a proper solution.
diff --git a/client/audio/sound.tscn b/client/audio/sound.tscn
index 11d1a4e2..49851f9a 100644
--- a/client/audio/sound.tscn
+++ b/client/audio/sound.tscn
@@ -1,8 +1,9 @@
-[gd_scene load_steps=4 format=3 uid="uid://d3h243yic44rr"]
+[gd_scene load_steps=5 format=3 uid="uid://d3h243yic44rr"]
[ext_resource type="Script" uid="uid://cho8r5m78a4ur" path="res://audio/sound.gd" id="1_b0qb1"]
[ext_resource type="AudioStream" uid="uid://cpyn511c5mtni" path="res://menu/sounds/click.ogg" id="2_mhrce"]
[ext_resource type="AudioStream" uid="uid://dtr1khfyqr56o" path="res://menu/sounds/hover.ogg" id="3_qft2s"]
+[ext_resource type="AudioStream" uid="uid://dft3m8utnxhs7" path="res://menu/sounds/game_start.ogg" id="4_le874"]
[node name="Sound" type="Node3D"]
script = ExtResource("1_b0qb1")
@@ -17,6 +18,10 @@ bus = &"SFX"
stream = ExtResource("3_qft2s")
bus = &"SFX"
+[node name="GameStart" type="AudioStreamPlayer" parent="UI"]
+stream = ExtResource("4_le874")
+bus = &"SFX"
+
[node name="Music" type="Node" parent="."]
[node name="MainMenu" type="AudioStreamPlayer" parent="Music"]