[gd_scene load_steps=8 format=3 uid="uid://duxyrrga1kx8w"]

[ext_resource type="Texture2D" uid="uid://dkhc3cs7opwpr" path="res://assets/bg.webp" id="1_2rn0s"]
[ext_resource type="Script" path="res://main.gd" id="1_p0ub8"]
[ext_resource type="PackedScene" uid="uid://ds7l3fhbhb4t6" path="res://controles.tscn" id="3_65kl8"]
[ext_resource type="PackedScene" uid="uid://blbvg25ql261k" path="res://hud.tscn" id="4_y2q7v"]
[ext_resource type="PackedScene" uid="uid://dcv3c8wyqyypr" path="res://mob.tscn" id="5_vcyp5"]
[ext_resource type="PackedScene" uid="uid://u4cljlml0btf" path="res://player.tscn" id="6_8s18m"]

[sub_resource type="Curve2D" id="Curve2D_sxben"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 478, -4.19617e-05, 0, 0, 0, 0, 478, 7.99996, 0, 0, 0, 0, -2, 8, 0, 0, 0, 0, -2, 0, 0, 0, 0, 0, 478, -4.19617e-05)
}
point_count = 5

[node name="Main" type="Node"]
script = ExtResource("1_p0ub8")
mob_scene = ExtResource("5_vcyp5")

[node name="TextureRect" type="TextureRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_2rn0s")

[node name="Controles" parent="." instance=ExtResource("3_65kl8")]

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

[node name="Mob" parent="." instance=ExtResource("5_vcyp5")]
position = Vector2(256, 48)
gravity_scale = 0.0

[node name="MobPath" type="Path2D" parent="."]
position = Vector2(426.471, 8)
rotation = 3.14159
scale = Vector2(0.778292, 1)
curve = SubResource("Curve2D_sxben")

[node name="MobSpawn" type="PathFollow2D" parent="MobPath"]
position = Vector2(478, -4.19617e-05)
rotation = 1.5708

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

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

[node name="Player" parent="." instance=ExtResource("6_8s18m")]

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