Main.tscn 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://Main.gd" type="Script" id=1]
  3. [ext_resource path="res://Enemy.tscn" type="PackedScene" id=2]
  4. [sub_resource type="Curve2D" id=1]
  5. _data = {
  6. "points": PoolVector2Array( 0, 0, 0, 0, -1.05261, 2.78944, 0, 0, 0, 0, 477.895, 2.78944, 0, 0, 0, 0, 460.055, 715.427, 0, 0, 0, 0, 5.76184, 708.778, 0, 0, 0, 0, -1.05261, 2.78944 )
  7. }
  8. [node name="Main" type="Node2D"]
  9. script = ExtResource( 1 )
  10. __meta__ = {
  11. "_edit_group_": true
  12. }
  13. Mob = ExtResource( 2 )
  14. [node name="MobTimer" type="Timer" parent="."]
  15. wait_time = 0.53
  16. [node name="ScoreTimer" type="Timer" parent="."]
  17. [node name="StartTimer" type="Timer" parent="."]
  18. wait_time = 2.41
  19. one_shot = true
  20. [node name="StartPositon" type="Position2D" parent="."]
  21. position = Vector2( 245.263, 375.79 )
  22. [node name="MobPath" type="Path2D" parent="."]
  23. curve = SubResource( 1 )
  24. [node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
  25. position = Vector2( -1.05261, 2.78944 )
  26. rotation = -6.07153e-08
  27. [connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
  28. [connection signal="timeout" from="ScoreTimer" to="." method="_on_ScoreTimer_timeout"]
  29. [connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]