Main.tscn 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [gd_scene load_steps=6 format=3 uid="uid://dxvx70pt1rc15"]
  2. [ext_resource type="Script" path="res://Scripts/Main.gd" id="1_12byx"]
  3. [ext_resource type="PackedScene" uid="uid://crjb0i1rbk4uc" path="res://Scenes/Player.tscn" id="2_41wvl"]
  4. [ext_resource type="PackedScene" uid="uid://dx8lbd6yta0qx" path="res://Scenes/Mob.tscn" id="3_0n2xp"]
  5. [ext_resource type="PackedScene" uid="uid://cw4hkuofe41pe" path="res://Scenes/HUD.tscn" id="4_kmdt2"]
  6. [sub_resource type="Curve2D" id="Curve2D_8pb0l"]
  7. _data = {
  8. "points": PackedVector2Array(0, 0, 0, 0, -2, 2, 0, 0, 0, 0, 479, 0, 0, 0, 0, 0, 480, 720, 0, 0, 0, 0, -2, 717, 0, 0, 0, 0, -2, 2)
  9. }
  10. point_count = 5
  11. [node name="Root" type="Node2D"]
  12. script = ExtResource("1_12byx")
  13. mob_scene = ExtResource("3_0n2xp")
  14. [node name="Player" parent="." instance=ExtResource("2_41wvl")]
  15. position = Vector2(239, 343)
  16. [node name="MobTimer" type="Timer" parent="."]
  17. wait_time = 0.579
  18. [node name="ScoreTimer" type="Timer" parent="."]
  19. [node name="StartTimer" type="Timer" parent="."]
  20. [node name="StartPosition" type="Marker2D" parent="."]
  21. position = Vector2(234, 345)
  22. [node name="MobPath" type="Path2D" parent="."]
  23. curve = SubResource("Curve2D_8pb0l")
  24. [node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
  25. position = Vector2(-2, 2)
  26. rotation = -0.00415798
  27. [node name="HUD" parent="." instance=ExtResource("4_kmdt2")]
  28. [connection signal="hit" from="Player" to="." method="game_over"]
  29. [connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]
  30. [connection signal="timeout" from="ScoreTimer" to="." method="_on_score_timer_timeout"]
  31. [connection signal="timeout" from="StartTimer" to="." method="_on_start_timer_timeout"]