Log inGet started
World

Seedforge: Procedural Dungeons, Caves, Mazes and Islands from a Seed

Branchmain
Branchesmain
Commit69b1712e78

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.