MobSpawner.tscn 721 B

123456789101112131415161718192021
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://component/entity/spawner/MobSpawner.gd" type="Script" id=1]
  3. [ext_resource path="res://component/entity/octo/Octo.tscn" type="PackedScene" id=2]
  4. [sub_resource type="Curve2D" id=1]
  5. _data = {
  6. "points": PoolVector2Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 480, 0, 0, 0, 0, 0, 480, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, 0, 0 )
  7. }
  8. [node name="MobSpawner" type="Path2D"]
  9. curve = SubResource( 1 )
  10. script = ExtResource( 1 )
  11. Mob = ExtResource( 2 )
  12. [node name="MobTimer" type="Timer" parent="."]
  13. process_mode = 0
  14. wait_time = 0.53
  15. [node name="MobSpawnLocation" type="PathFollow2D" parent="."]
  16. [connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]