[gd_scene load_steps=5 format=3 uid="uid://dpy3i1p182078"]

[ext_resource type="Script" path="res://lvl/lvl_01.gd" id="1_einmg"]
[ext_resource type="PackedScene" uid="uid://da7k18xw8t36" path="res://player/Player.tscn" id="2_4os8n"]
[ext_resource type="PackedScene" uid="uid://b45y26yaodfcw" path="res://map/map_2.tscn" id="2_7fqdj"]
[ext_resource type="AudioStream" uid="uid://7lcs8p0viqa0" path="res://music/gladiateur.ogg" id="4_7sbtx"]

[node name="Lvl01" type="Node2D"]
script = ExtResource("1_einmg")

[node name="Map1" parent="." instance=ExtResource("2_7fqdj")]

[node name="children" type="Node" parent="."]

[node name="Player" parent="." node_paths=PackedStringArray("timer") instance=ExtResource("2_4os8n")]
position = Vector2(139, 139)
timer = NodePath("../GlobalTimer")

[node name="GlobalTimer" type="Timer" parent="."]
wait_time = 40.0
one_shot = true
autostart = true

[node name="SpawnTimer" type="Timer" parent="."]
wait_time = 7.5
autostart = true

[node name="WIN" type="AudioStreamPlayer" parent="."]

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_7sbtx")
volume_db = -20.0
pitch_scale = 1.1
autoplay = true

[connection signal="collided_child" from="Player" to="." method="_on_player_collided_child"]
[connection signal="new_score" from="Player" to="." method="_on_player_new_score"]
[connection signal="timeout" from="GlobalTimer" to="." method="_on_global_timer_timeout"]
[connection signal="timeout" from="SpawnTimer" to="." method="_on_spawn_timer_timeout"]
[connection signal="finished" from="WIN" to="." method="_on_win_finished"]
