MobSpawner.tscn 835 B

1234567891011121314151617181920212223
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://component/entity/spawner/MobSpawner.gd" type="Script" id=1]
  3. [ext_resource path="res://component/entity/wheel/Wheel.tscn" type="PackedScene" id=3]
  4. [ext_resource path="res://component/entity/chick/Chicken.tscn" type="PackedScene" id=4]
  5. [sub_resource type="Curve2D" id=1]
  6. _data = {
  7. "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 )
  8. }
  9. [node name="MobSpawner" type="Path2D"]
  10. curve = SubResource( 1 )
  11. script = ExtResource( 1 )
  12. mobs = [ ExtResource( 3 ), ExtResource( 4 ) ]
  13. [node name="MobTimer" type="Timer" parent="."]
  14. process_mode = 0
  15. wait_time = 0.53
  16. [node name="MobSpawnLocation" type="PathFollow2D" parent="."]
  17. [connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]