Log inGet started
World

Arena Layout Kit: Rings, Pillars, Corridors, Bunkers and Hazard Lanes

Branchmain
Branchesmain
Commitc1defc9a7c

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, plus shrink or lanes settings for the two dynamic layouts.
  • build(id, opts) spawns the root <prefix>Arena with a floor, a floor collider, a box collider on every wall, pillar and bunker side, spawnerKit spawn points on the gates (once use({ spawner }) hands spawnerKit in) and named player starts.
  • use({ spawner, materials }) hands in optional kits; defineTheme, defineLayout, propHook and withDefaults extend it with your own art, layouts, props and naming.

Layouts: ring, pillars, cross, bunkers, shrinking, hazardLanes. Themes: plain, desertRuins.