Adaptive music and music 👍

This commit is contained in:
Rendo 2025-07-21 14:28:40 +05:00
commit dcffb97a3d
48 changed files with 603 additions and 24 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=3 uid="uid://dpxxjfd5lv5sv"]
[gd_scene load_steps=20 format=3 uid="uid://dpxxjfd5lv5sv"]
[ext_resource type="Theme" uid="uid://e8n88g31w7x7" path="res://assets/themes/ChooseYourSeeds.tres" id="1_bfo8i"]
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="2_so2bw"]
@ -12,6 +12,8 @@
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="9_v7xff"]
[ext_resource type="Script" uid="uid://c1x4n4nqyq72f" path="res://scripts/audio/ChannelSettings.cs" id="10_nlh6x"]
[ext_resource type="PackedScene" uid="uid://bvpt0q4j6nx18" path="res://scenes/gui/almanach.tscn" id="11_nlh6x"]
[ext_resource type="AudioStream" uid="uid://mu86q1r1dvgo" path="res://assets/audio/music/03. Choose Your Seeds.mp3" id="13_y65t1"]
[ext_resource type="Script" uid="uid://b4ysi1iutmju3" path="res://scripts/ChooseYourSeedsMusic.cs" id="14_rptyw"]
[sub_resource type="ViewportTexture" id="ViewportTexture_rmoaa"]
viewport_path = NodePath("Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/Previewport")
@ -35,6 +37,10 @@ script = ExtResource("10_nlh6x")
restartTreshold = -1.0
metadata/_custom_type_script = "uid://c1x4n4nqyq72f"
[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_lkvg0"]
stream_count = 1
stream_0 = ExtResource("13_y65t1")
[node name="ChooseYourSeeds" type="Control"]
process_mode = 3
layout_mode = 3
@ -168,4 +174,10 @@ metadata/_custom_type_script = "uid://c36bj8u7jghc7"
[node name="Almanach" parent="Independer" instance=ExtResource("11_nlh6x")]
visible = false
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamPlaylist_lkvg0")
autoplay = true
bus = &"MusicBus"
script = ExtResource("14_rptyw")
[connection signal="pressed" from="Panel/LevelRunButton" to="ChannelPlayer" method="Play"]