feat: music

This commit is contained in:
2025-06-29 12:44:43 +02:00
parent a271dc1d36
commit 3564825cd1
19 changed files with 147 additions and 22 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=114 format=4 uid="uid://b8uo8e7x1frsc"]
[gd_scene load_steps=116 format=4 uid="uid://b8uo8e7x1frsc"]
[ext_resource type="Script" uid="uid://cjo7sxy5vy7bc" path="res://scenes/indoors/bar.gd" id="1_x0onc"]
[ext_resource type="Resource" uid="uid://7bmpcn0dxwr8" path="res://scenes/player/base.tres" id="2_7r073"]
@ -59,6 +59,7 @@
[ext_resource type="Texture2D" uid="uid://ca5svwt3epr66" path="res://assets/Modern_Interiors_Free_v2.2/Modern tiles_Free/Characters_free/Adam_sit3_16x16.png" id="57_6qh2u"]
[ext_resource type="Texture2D" uid="uid://cdkd4frggan56" path="res://assets/Modern_Interiors_Free_v2.2/Modern tiles_Free/Characters_free/Alex_idle_anim_16x16.png" id="58_8o1ns"]
[ext_resource type="Texture2D" uid="uid://dhjv5lvcp7so" path="res://assets/Modern_Interiors_Free_v2.2/Modern tiles_Free/Characters_free/Bob_idle_anim_16x16.png" id="59_shjvm"]
[ext_resource type="AudioStream" uid="uid://cb40pasbhcfuq" path="res://assets/Audio/MUS_LVL2_intro.ogg" id="60_shjvm"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_nyh47"]
texture = ExtResource("3_18rbg")
@ -2613,6 +2614,16 @@ animations = [{
"speed": 5.0
}]
[sub_resource type="AudioStreamInteractive" id="AudioStreamInteractive_yudpf"]
clip_count = 2
clip_0/name = &"Mus Lvl 2 Intro"
clip_0/stream = ExtResource("60_shjvm")
clip_0/auto_advance = 1
clip_0/next_clip = 1
clip_1/name = &"Mus Lvl 2 Loop"
clip_1/stream = ExtResource("4_hpoax")
clip_1/auto_advance = 0
[node name="Main" type="Node2D"]
script = ExtResource("1_x0onc")
"golé" = "uid://cgql2prrr5cj7"
@ -2990,6 +3001,7 @@ bus = &"Music"
[node name="Interact" type="AudioStreamPlayer2D" parent="Player"]
position = Vector2(-344, -277)
stream = ExtResource("5_elbga")
bus = &"UI"
[node name="lights" type="Node2D" parent="."]
visible = false
@ -3166,6 +3178,11 @@ scale = Vector2(-1, 1)
sprite_frames = SubResource("SpriteFrames_dsjtd")
autoplay = "default"
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamInteractive_yudpf")
autoplay = true
bus = &"Music"
[connection signal="timeout" from="TimerBetweenVO" to="." method="_on_timer_between_vo_timeout"]
[connection signal="event_triggered" from="WrongTapis" to="." method="_on_interactible_triggered"]
[connection signal="event_triggered" from="WrongTapis3" to="." method="_on_interactible_triggered"]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=91 format=4 uid="uid://bnba2vd0m0qao"]
[gd_scene load_steps=93 format=4 uid="uid://bnba2vd0m0qao"]
[ext_resource type="Script" uid="uid://c232mm5h43ed4" path="res://scenes/indoors/last.gd" id="1_cad5s"]
[ext_resource type="Resource" uid="uid://7bmpcn0dxwr8" path="res://scenes/player/base.tres" id="2_1lxr4"]
@ -60,6 +60,7 @@
[ext_resource type="AudioStream" uid="uid://d0lfg1am27eou" path="res://assets/Audio/VO_LVL3_B_09.ogg" id="51_s8chb"]
[ext_resource type="AudioStream" uid="uid://c1wkrw3fdj2rr" path="res://assets/Audio/VO_LVL3_A_10.ogg" id="52_roruu"]
[ext_resource type="AudioStream" uid="uid://cy0solmf5ni63" path="res://assets/Audio/VO_LVL3_B_10.ogg" id="53_w43jt"]
[ext_resource type="AudioStream" uid="uid://b2n1oebsc28yt" path="res://assets/Audio/MUS_LVL3_intro.ogg" id="61_o22xi"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_nyh47"]
texture = ExtResource("3_vefux")
@ -2437,6 +2438,16 @@ streams_count = 2
stream_0/stream = ExtResource("52_roruu")
stream_1/stream = ExtResource("53_w43jt")
[sub_resource type="AudioStreamInteractive" id="AudioStreamInteractive_xiu81"]
clip_count = 2
clip_0/name = &"Mus Lvl 3 Intro"
clip_0/stream = ExtResource("61_o22xi")
clip_0/auto_advance = 1
clip_0/next_clip = 1
clip_1/name = &"Mus Lvl 3 Loop"
clip_1/stream = ExtResource("4_o1p8b")
clip_1/auto_advance = 0
[node name="Main" type="Node2D"]
script = ExtResource("1_cad5s")
"golé" = "uid://cgql2prrr5cj7"
@ -2515,14 +2526,14 @@ position = Vector2(292, -17)
sprite_frames = SubResource("SpriteFrames_fcj1w")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.987176
frame_progress = 0.432269
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="Hack"]
position = Vector2(-11, 14)
sprite_frames = SubResource("SpriteFrames_tnfmx")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.0320194
frame_progress = 0.477111
[node name="StaticBody2D" type="StaticBody2D" parent="Hack"]
@ -2616,6 +2627,7 @@ bus = &"Music"
[node name="Interact" type="AudioStreamPlayer2D" parent="Player"]
stream = ExtResource("15_7ac63")
bus = &"UI"
[node name="Lights" type="Node2D" parent="."]
@ -2635,6 +2647,11 @@ texture = ExtResource("7_7ac63")
wait_time = 4.0
autostart = true
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamInteractive_xiu81")
autoplay = true
bus = &"Music"
[connection signal="event_confirmed" from="GetOutDoors/WrongDoor" to="." method="_on_wrong_door_event_triggered"]
[connection signal="event_confirmed" from="GetOutDoors/RightDoor" to="." method="_on_right_door_event_triggered"]
[connection signal="event_triggered" from="RightPrise" to="." method="_on_prise_interacted"]