diff --git a/assets/sounds/menuPrincipal.wav b/assets/sounds/menuPrincipal.wav new file mode 100644 index 0000000..f60f317 --- /dev/null +++ b/assets/sounds/menuPrincipal.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fccc5853ed3820a7070f0dafa8973636979b253958ae213b4de1b0732fa882b +size 1230804 diff --git a/scenes/Menu.tscn b/scenes/Menu.tscn index c9b2c8f..e7f1292 100644 --- a/scenes/Menu.tscn +++ b/scenes/Menu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://assets/images/fondMenu.png" type="Texture" id=1] [ext_resource path="res://assets/images/titreMenu.png" type="Texture" id=2] @@ -7,6 +7,7 @@ [ext_resource path="res://assets/images/buttonExitSelected.png" type="Texture" id=5] [ext_resource path="res://assets/images/buttonExit.png" type="Texture" id=6] [ext_resource path="res://scripts/menuPrincipal.gd" type="Script" id=7] +[ext_resource path="res://assets/sounds/menuPrincipal.wav" type="AudioStream" id=8] [node name="Menu" type="Node2D"] @@ -60,5 +61,10 @@ margin_right = 324.0 margin_bottom = 372.0 texture_normal = ExtResource( 6 ) texture_focused = ExtResource( 5 ) + +[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="Principal"] +position = Vector2( 512, 300 ) +stream = ExtResource( 8 ) +autoplay = true [connection signal="pressed" from="Principal/MarginContainer/VBoxContainer/VBoxContainer/Jouer" to="Principal" method="_on_Jouer_pressed"] [connection signal="pressed" from="Principal/MarginContainer/VBoxContainer/VBoxContainer/Quitter" to="Principal" method="_on_Quitter_pressed"]