ajout son balle

This commit is contained in:
Mylloon 2021-04-08 13:37:38 +02:00
parent 6e1d582f5d
commit 5233c96855
3 changed files with 14 additions and 2 deletions

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

Binary file not shown.

View file

@ -1,3 +1,4 @@
background -> https://tinyurl.com/yjfwbf2e background -> https://tinyurl.com/yjfwbf2e
mort -> https://tinyurl.com/yzl6lem6 mort -> https://tinyurl.com/yzl6lem6
menuPrincipal -> https://tinyurl.com/yfophdqk menuPrincipal -> https://tinyurl.com/yfophdqk
balle -> https://tinyurl.com/yfsuwngs

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/images/balle.png" type="Texture" id=1] [ext_resource path="res://assets/images/balle.png" type="Texture" id=1]
[ext_resource path="res://scripts/Balle.gd" type="Script" id=2] [ext_resource path="res://scripts/Balle.gd" type="Script" id=2]
[ext_resource path="res://assets/sounds/balle.wav" type="AudioStream" id=3]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 1.5 ) extents = Vector2( 4, 1.5 )
@ -14,4 +15,11 @@ shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."] [node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 ) texture = ExtResource( 1 )
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
volume_db = -28.0
pitch_scale = 1.85
autoplay = true
attenuation = 2.63902
[connection signal="body_entered" from="." to="." method="_on_Area2D_body_entered"] [connection signal="body_entered" from="." to="." method="_on_Area2D_body_entered"]