diff --git a/assets/musics/mod118.ogg b/assets/musics/mod118.ogg new file mode 100644 index 0000000..1aae645 Binary files /dev/null and b/assets/musics/mod118.ogg differ diff --git a/default_bus_layout.tres b/default_bus_layout.tres index 8c5f652..e929307 100644 --- a/default_bus_layout.tres +++ b/default_bus_layout.tres @@ -1,10 +1,10 @@ [gd_resource type="AudioBusLayout" format=3 uid="uid://dcxpomrfumov"] [resource] -bus/0/volume_db = -8.00903 +bus/0/volume_db = -4.003 bus/1/name = &"SoundEffects" bus/1/solo = false bus/1/mute = false bus/1/bypass_fx = false -bus/1/volume_db = 0.0 +bus/1/volume_db = -10.0692 bus/1/send = &"Master" diff --git a/src/ingame/ingame.gd b/src/ingame/ingame.gd index 861fb2e..5197d71 100644 --- a/src/ingame/ingame.gd +++ b/src/ingame/ingame.gd @@ -39,6 +39,9 @@ func _ready() -> void: if not OS.has_feature("dedicated_server"): _add_player.call_deferred(1) + if not "--join" in OS.get_cmdline_args(): + $Soundtrack.play() + func _exit_tree() -> void: if not multiplayer.is_server(): diff --git a/src/ingame/ingame.tscn b/src/ingame/ingame.tscn index 09734fc..cec9a72 100644 --- a/src/ingame/ingame.tscn +++ b/src/ingame/ingame.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=13 format=3 uid="uid://oyvhcwq60v2"] +[gd_scene load_steps=14 format=3 uid="uid://oyvhcwq60v2"] [ext_resource type="Script" path="res://src/ingame/ingame.gd" id="1_akuuj"] [ext_resource type="PackedScene" uid="uid://cs8c570bxh6u" path="res://src/ingame/player.tscn" id="2_w1gjc"] [ext_resource type="PackedScene" uid="uid://bysgtksvovyur" path="res://src/ingame/sprout.tscn" id="3_2xvqq"] +[ext_resource type="AudioStream" uid="uid://bpmc2amg1kbfn" path="res://assets/musics/mod118.ogg" id="3_34hvs"] [ext_resource type="Script" path="res://src/ingame/ui.gd" id="3_p340v"] [ext_resource type="PackedScene" uid="uid://enukqx63dh2l" path="res://src/ingame/pipe.tscn" id="4_mltw3"] @@ -44,6 +45,10 @@ _chat_panel_inactive = NodePath("UI/ChatPanelInactive") _chat_history_inactive = NodePath("UI/ChatPanelInactive/ChatHistoryScroll/ChatHistory") _chat_history_scroll_inactive = NodePath("UI/ChatPanelInactive/ChatHistoryScroll") +[node name="Soundtrack" type="AudioStreamPlayer" parent="."] +stream = ExtResource("3_34hvs") +parameters/looping = true + [node name="UI" type="CanvasLayer" parent="." node_paths=PackedStringArray("_combo_timer")] script = ExtResource("3_p340v") _combo_timer = NodePath("ComboTimer")