diff options
author | BigBrotherNii <nicochr1004@gmail.com> | 2024-07-24 17:21:24 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-25 11:25:41 +0200 |
commit | a2c5fa06d3c36ddd71d96beda79605145e061e5e (patch) | |
tree | 9471a0a583ce1e5f4cb4a7298149b5540191c60a /client/audio | |
parent | 7e4ad7a70a2636c117879021f61b3a2025a16743 (diff) | |
download | hurrycurry-a2c5fa06d3c36ddd71d96beda79605145e061e5e.tar hurrycurry-a2c5fa06d3c36ddd71d96beda79605145e061e5e.tar.bz2 hurrycurry-a2c5fa06d3c36ddd71d96beda79605145e061e5e.tar.zst |
added lobby music
Diffstat (limited to 'client/audio')
-rw-r--r-- | client/audio/sound.gd | 4 | ||||
-rw-r--r-- | client/audio/sound.tscn | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/client/audio/sound.gd b/client/audio/sound.gd index 13fde6a2..af23f0cd 100644 --- a/client/audio/sound.gd +++ b/client/audio/sound.gd @@ -29,7 +29,9 @@ func play_music(music : String): # If music == "stop", this stops all music for stream in music_node.get_children(): stream.stop() - if music != "stop": + if music_node.get_node(music) == null: + return + else: music_node.get_node(music).play() func set_volume(value:float): diff --git a/client/audio/sound.tscn b/client/audio/sound.tscn index a8524e71..aac5e159 100644 --- a/client/audio/sound.tscn +++ b/client/audio/sound.tscn @@ -18,3 +18,7 @@ stream = ExtResource("3_qft2s") [node name="Music" type="Node" parent="."] [node name="MainMenu" type="AudioStreamPlayer" parent="Music"] +volume_db = 1.0 + +[node name="Lobby" type="AudioStreamPlayer" parent="Music"] +volume_db = -2.5 |