Log inGet started
Package

enemies.module

Newest version

README.md

procLevelKit.enemies

Plugs a level's enemy markers into spawnerKit: attach(level, spawner, opts) (called as level:spawnEnemies(spawner, opts)) puts a spawnerKit spawn point on every enemy marker, waits until the spawner's host is settled (the first frames of play have no owner yet, so an early "am I the host?" can wrongly answer no), then has the host spawn one enemy per spot through the spawner (kinds, kind(i, spot), offset, reset, pattern, timeout). Every player sees the same enemies. Clearing the level removes its spawn points and returns its enemies to the pool.