diff options
author | ClarkeCode <33846391+ClarkeCode@users.noreply.github.com> | 2023-03-06 22:14:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 22:14:19 +0100 |
commit | ce325c16c0f5d82ed51abd8bd13928a7bc609ba5 (patch) | |
tree | 9684123684de590ecd3be99be034d68f4bc6f8b7 /game/src/MusicConductor/MusicConductor.tscn | |
parent | 95173891f7c5eea7717a58ae4f1438fd09e0ee1f (diff) |
Add Music Player (#49)
* Adding MusicConductor
* Added selectable songs and player visibility toggle
* Refinements to the music system
* SongInfo compatability with various audio formats
* Moved UI reqs to editor description; flipped conditions to exclude music .import files
* Made selection of the first music track extension-agnostic
* Fixed visual bug with play/pause button when interacting with progress slider
Diffstat (limited to 'game/src/MusicConductor/MusicConductor.tscn')
-rw-r--r-- | game/src/MusicConductor/MusicConductor.tscn | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/game/src/MusicConductor/MusicConductor.tscn b/game/src/MusicConductor/MusicConductor.tscn new file mode 100644 index 0000000..69529d8 --- /dev/null +++ b/game/src/MusicConductor/MusicConductor.tscn @@ -0,0 +1,13 @@ +[gd_scene load_steps=2 format=3 uid="uid://b1h31mnn8n2nu"] + +[ext_resource type="Script" path="res://src/MusicConductor/MusicConductor.gd" id="1_56t1b"] + +[node name="MusicConductor" type="Node"] +script = ExtResource("1_56t1b") +musicDir = "res://audio/music/" +firstSongName = "The_Crown" + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +bus = &"Music" + +[connection signal="finished" from="AudioStreamPlayer" to="." method="_on_audio_stream_player_finished"] |