layouts
The map layouts as data: the field size, the routes enemies walk (lists of control points from an entrance to the goal) and the goal. Six ship: `snake` (one long winding road), `switchbacks` (tight hairpins), `fork` (one road splitting into two lanes and joining again), `spiral`…
towerDefenseKit.layouts
The map layouts as data: the field size, the routes enemies walk (lists of control points from an entrance to the goal) and the goal. Six ship: snake (one long winding road), switchbacks (tight hairpins), fork (one road splitting into two lanes and joining again), spiral (inward to a centre goal), merge (two entrances whose roads join) and ring (a road circling an island, then a causeway onto it). Layouts.define(id, { size, routes, goal, island? }) adds your own; get, list, ids read them. Used by towerDefenseKit.api, Game, PathLook and Commander.
Scoped to this part · feeds back into the world's score.