ajout son

This commit is contained in:
Mylloon 2021-04-07 19:26:31 +02:00
parent fffddf38d5
commit 65cbfc657c
4 changed files with 10 additions and 2 deletions

BIN
assets/sounds/background.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1 @@
background -> https://tinyurl.com/yjfwbf2e

View file

@ -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"]

View file

@ -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 )