diff --git a/assets/sounds/background.wav b/assets/sounds/background.wav new file mode 100644 index 0000000..98c2bf4 --- /dev/null +++ b/assets/sounds/background.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13817b6a1900efafb1b099cdb8fdd4c8565e4165a8aaa382feb72724d6979477 +size 1103656 diff --git a/assets/sounds/beepbox links.txt b/assets/sounds/beepbox links.txt new file mode 100644 index 0000000..566c8fd --- /dev/null +++ b/assets/sounds/beepbox links.txt @@ -0,0 +1 @@ +background -> https://tinyurl.com/yjfwbf2e \ No newline at end of file diff --git a/scenes/Monde.tscn b/scenes/Monde.tscn index 2b5c331..6c30c2a 100644 --- a/scenes/Monde.tscn +++ b/scenes/Monde.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=11 format=2] [ext_resource path="res://assets/images/joueur.png" type="Texture" id=1] [ext_resource path="res://scripts/Joueur.gd" type="Script" id=2] @@ -6,6 +6,7 @@ [ext_resource path="res://assets/images/Fond.png" type="Texture" id=4] [ext_resource path="res://scenes/mur.tres" type="TileSet" id=5] [ext_resource path="res://assets/images/Lumière.png" type="Texture" id=6] +[ext_resource path="res://assets/sounds/background.wav" type="AudioStream" id=7] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 8, 8 ) @@ -163,4 +164,8 @@ tile_data = PoolIntArray( -1376258, 0, 0, -1376257, 0, 0, -1441792, 0, 0, -14417 [node name="CanvasModulate" type="CanvasModulate" parent="."] color = Color( 0.27451, 0.27451, 0.27451, 1 ) + +[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource( 7 ) +autoplay = true [connection signal="body_entered" from="Joueur/Area2D" to="Joueur" method="_on_Area2D_body_entered"] diff --git a/scenes/mur.tres b/scenes/mur.tres index 0df6201..defa5c8 100644 --- a/scenes/mur.tres +++ b/scenes/mur.tres @@ -2,7 +2,6 @@ [ext_resource path="res://assets/images/Batiment.png" type="Texture" id=1] - [sub_resource type="OccluderPolygon2D" id=1] polygon = PoolVector2Array( -8.00226, -7.97379, -7.99188, 7.99426, 8.00321, 7.99426, 8.01305, -8.00083 )