[gd_scene load_steps=9 format=2]

[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Main.gd" type="Script" id=2]
[ext_resource path="res://Ennemi.tscn" type="PackedScene" id=3]
[ext_resource path="res://Menu.tscn" type="PackedScene" id=4]
[ext_resource path="res://imgs/background.png" type="Texture" id=5]
[ext_resource path="res://sounds/music_background.wav" type="AudioStream" id=6]
[ext_resource path="res://sounds/gameover.wav" type="AudioStream" id=7]

[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, -1.09833, -1.42838, 0, 0, 0, 0, 480, 0, 0, 0, 0, 0, 480, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, -1.09833, -1.42838 )
}

[node name="Main" type="Node"]
script = ExtResource( 2 )
Ennemi = ExtResource( 3 )

[node name="TextureRect" type="TextureRect" parent="."]
margin_right = 480.0
margin_bottom = 720.0
texture = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Joueur" parent="." instance=ExtResource( 1 )]

[node name="TimerEnnemi" type="Timer" parent="."]
wait_time = 0.2

[node name="TimerScore" type="Timer" parent="."]

[node name="TimerDebut" type="Timer" parent="."]
wait_time = 2.0
one_shot = true

[node name="PositionDebut" type="Position2D" parent="."]
position = Vector2( 240, 320 )

[node name="Path2D" type="Path2D" parent="."]
curve = SubResource( 1 )

[node name="SpawnEnnemi" type="PathFollow2D" parent="Path2D"]
position = Vector2( -1.09833, -1.42838 )
rotation = 0.00296902

[node name="Menu" parent="." instance=ExtResource( 4 )]

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
volume_db = -24.233

[node name="AudioGameOver" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
[connection signal="perdu" from="Joueur" to="." method="perdu"]
[connection signal="timeout" from="TimerEnnemi" to="." method="_on_TimerEnnemi_timeout"]
[connection signal="timeout" from="TimerScore" to="." method="_on_TimerScore_timeout"]
[connection signal="timeout" from="TimerDebut" to="." method="_on_TimerDebut_timeout"]
[connection signal="lancement_partie" from="Menu" to="." method="nouvelle_partie"]
