The pack
side
function side(opts: SideOptions = {}): Pack<{ world: World2dApi }>
The side-on world pack: within a layer, z then spawn order. No y-sort — a platformer's depth is declared, not derived. Installs the 2D camera; registers the world with the kernel.
Types
SideOptions
interface SideOptions
Manifest options.
layers?: LayerName[]— Draw layers, back to front. Default ['back', 'world', 'front'].wrap?: Wrap— A toroidal world of this size (world units): positions, drawing, camera, queries and collision all wrap. Game code never wraps a coordinate. Default none.


