summaryrefslogtreecommitdiff
path: root/game.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game.gd')
-rw-r--r--game.gd11
1 files changed, 11 insertions, 0 deletions
diff --git a/game.gd b/game.gd
new file mode 100644
index 0000000..6056176
--- /dev/null
+++ b/game.gd
@@ -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)