25 lines
794 B
Text
25 lines
794 B
Text
[gd_scene load_steps=5 format=2]
|
|
|
|
[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://assets/sounds/balle.wav" type="AudioStream" id=3]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 4, 1.5 )
|
|
|
|
[node name="Area2D" type="Area2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="SonBalle" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource( 3 )
|
|
volume_db = -32.0
|
|
pitch_scale = 1.85
|
|
autoplay = true
|
|
attenuation = 2.63902
|
|
[connection signal="body_entered" from="." to="." method="_on_Area2D_body_entered"]
|