Arena Layout Kit: Rings, Pillars, Corridors, Bunkers and Hazard Lanes
README.md
arenaLayoutKit.api
Arena layouts as pure data plans, and the builder that turns a plan into entities. Called from a scene's build or a game's start code.
plan(id, opts)returns the pieces of a layout centred on 0,0: walls, pillars, bunkers, lanes, spawn gates and player starts, plusshrinkorlanessettings for the two dynamic layouts.build(id, opts)spawns the root<prefix>Arenawith a floor, a floor collider, a box collider on every wall, pillar and bunker side, spawnerKit spawn points on the gates (onceuse({ spawner })hands spawnerKit in) and named player starts.use({ spawner, materials })hands in optional kits;defineTheme,defineLayout,propHookandwithDefaultsextend it with your own art, layouts, props and naming.
Layouts: ring, pillars, cross, bunkers, shrinking, hazardLanes. Themes: plain, desertRuins.