[gd_scene load_steps=6 format=3 uid="uid://d16wqwmxi6r6u"]

[ext_resource type="Script" uid="uid://c6ywdg0jd2u57" path="res://main.gd" id="1_0xm2m"]
[ext_resource type="PackedScene" uid="uid://clybje3qfbio0" path="res://player.tscn" id="1_ig7tw"]
[ext_resource type="PackedScene" uid="uid://2eni4bs27j67" path="res://mob.tscn" id="2_h2yge"]
[ext_resource type="PackedScene" uid="uid://cql0s0a26rpks" path="res://hud.tscn" id="4_1bvp3"]

[sub_resource type="Curve2D" id="Curve2D_ig7tw"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, -3, -3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, -2, 0, 0, 0, 0, 477, 720, 0, 0, 0, 0, -1, 717, 0, 0, 0, 0, -3, -3)
}
point_count = 6

[node name="main" type="Node"]
script = ExtResource("1_0xm2m")
mob_scene = ExtResource("2_h2yge")

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

[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.5

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

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

[node name="StartPosition" type="Marker2D" parent="."]
position = Vector2(240, 450)

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

[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2(-3, -3)
rotation = 0.7853982

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

[connection signal="hit" from="Player" to="." method="game_over"]
[connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]
[connection signal="timeout" from="ScoreTimer" to="." method="_on_score_timer_timeout"]
[connection signal="timeout" from="StartTimer" to="." method="_on_start_timer_timeout"]
[connection signal="start_game" from="HUD" to="." method="new_game"]
