pixelBosses.package
README.md
api
The front door of pixelBosses: Bosses.list() and Bosses.info(id) (display name, title, max health, phases), Bosses.on("phase" | "defeated" | "hurt" | "state" | "*", fn) events that fire on every peer, Bosses.all() / Bosses.get(id) for the Boss2D components on this peer, Bosses.hitbox(id) for any attack system, the replaceable Bosses.hurtPlayer(body, info) (default: a Trapline life) with its Bosses.INVULNERABLE window, and Bosses.now(), the shared clock moves are timed on. It also carries damage, activate / reset commands and minion deaths between peers. Called by game code, arena kits and the Boss2D component.