Un peu de musique dans ce monde de brutes

This commit is contained in:
Thomas
2025-03-31 13:13:07 +02:00
parent a82237ff28
commit b091bb96db
46 changed files with 702 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ func set_last_save_info():
func _ready() -> void:
set_last_save_info()
$AudioStreamPlayer.play()
func _on_button_pressed() -> void:
emit_signal("start")
@@ -43,6 +44,5 @@ func _on_load_pressed() -> void:
emit_signal("load")
_on_button_pressed()
func _on_timer_timeout() -> void:
$MarginContainer/Panel/VBoxContainer/info.text=""

View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=7 format=3 uid="uid://44wla7mlivqm"]
[gd_scene load_steps=8 format=3 uid="uid://44wla7mlivqm"]
[ext_resource type="Script" path="res://UI/menu.gd" id="1_30mo7"]
[ext_resource type="FontFile" uid="uid://c1lnxul6k2adw" path="res://assest/font/vhs-gothic.ttf" id="2_6inip"]
[ext_resource type="Theme" uid="uid://bn1flbuijm27d" path="res://UI/menu_button.tres" id="3_feq31"]
[ext_resource type="AudioStream" uid="uid://dcp8rqog22cbk" path="res://assest/music/chaussette.ogg" id="4_0n4j1"]
[sub_resource type="LabelSettings" id="LabelSettings_q3w7i"]
line_spacing = 45.0
@@ -86,6 +87,11 @@ vertical_alignment = 3
wait_time = 5.0
one_shot = true
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_0n4j1")
volume_db = -14.596
autoplay = true
[connection signal="pressed" from="MarginContainer/Panel/VBoxContainer/Start" to="." method="_on_button_pressed"]
[connection signal="pressed" from="MarginContainer/Panel/VBoxContainer/Load" to="." method="_on_load_pressed"]
[connection signal="pressed" from="MarginContainer/Panel/VBoxContainer/Save" to="." method="_on_save_pressed"]