Pathwise: Navigation and Crowd Agents Kit
README.md
sync
Proof that every player sees the same enemies. Each peer that is not in charge sends the host a small digest every 2 s: the active enemies' ids, kinds, spawn spots and positions, each spawner's wave counters, and how many enemies it created itself. The host compares the digest with its own state and sends the verdict back.
Read it with SK.syncReport(): on the host, one report per other peer; elsewhere, the host's latest verdict about this peer. Each report counts missing, extra (a duplicate, or an enemy still shown after the host put it back), spawnSpot, drift (live position more than tolerance m apart), wave and peerSpawned problems, with the last few as text. Tune or switch it off with SK.syncCheck({ enabled, interval, grace, tolerance }). The Spawner runs it every frame on every peer, and the PoolReadout shows the verdict on both screens.