diff options
Diffstat (limited to 'game.gd')
-rw-r--r-- | game.gd | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +extends Node + +@export var mob: PackedScene +@export var mob_spawn_location: PathFollow2D + + +func _on_spawn_timer_timeout() -> void: + var e = mob.instantiate() + mob_spawn_location.progress_ratio = randf() + e.position = mob_spawn_location.position + add_child(e) |