46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://d16wqwmxi6r6u"]
|
|
|
|
[ext_resource type="Script" uid="uid://c6ywdg0jd2u57" path="res://scripts/main.gd" id="1_jyhfs"]
|
|
[ext_resource type="PackedScene" uid="uid://2eni4bs27j67" path="res://scenes/mob.tscn" id="2_tbgi4"]
|
|
[ext_resource type="PackedScene" uid="uid://clybje3qfbio0" path="res://scenes/player.tscn" id="3_tefeu"]
|
|
[ext_resource type="PackedScene" uid="uid://cql0s0a26rpks" path="res://scenes/hud.tscn" id="4_o6xl0"]
|
|
|
|
[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_jyhfs")
|
|
mob_scene = ExtResource("2_tbgi4")
|
|
|
|
[node name="Player" parent="." instance=ExtResource("3_tefeu")]
|
|
|
|
[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_o6xl0")]
|
|
|
|
[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"]
|