more musiks
This commit is contained in:
@ -40,7 +40,21 @@ func _ready() -> void:
|
||||
_add_player.call_deferred(1)
|
||||
|
||||
if not "--join" in OS.get_cmdline_args():
|
||||
$Soundtrack.play()
|
||||
$Soundtrack.finished.connect(_play_new_track)
|
||||
_play_new_track()
|
||||
|
||||
# TODO: sync what's played for peers, server controlled
|
||||
# TODO: keep a list of what wasn't yet played, so that we repeat less
|
||||
func _play_new_track():
|
||||
$Soundtrack.stream = load(
|
||||
[
|
||||
"res://assets/musics/mod118.ogg",
|
||||
"res://assets/musics/mod147-medley.mp3",
|
||||
"res://assets/musics/mod170-toomanyfuckingdoors.ogg",
|
||||
"res://assets/musics/sho.ogg",
|
||||
].pick_random()
|
||||
)
|
||||
$Soundtrack.play()
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
|
@ -1,9 +1,8 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://oyvhcwq60v2"]
|
||||
[gd_scene load_steps=13 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"]
|
||||
|
||||
@ -46,8 +45,6 @@ _chat_history_inactive = NodePath("UI/ChatPanelInactive/ChatHistoryScroll/ChatHi
|
||||
_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")
|
||||
|
Reference in New Issue
Block a user