Log inGet started
World

High Ground: Tactics Battle Maps with Cover, Ramps and Chokepoints

README.md

BattleMap

Puts one battleMapsKit battle map on the entity it is attached to (component type battleMapsKit.BattleMap): set layout (bridge, gate, terraces, twinHills, crossroads, canyon, monastery, narrowBridge, or generated) and setting (ruins, snowPass, riverVillage, forest, desert, outpost, monastery), quality ("high" or "low") and lighting (also put up the setting sky, sun and fog). With layout = "generated" the board comes from BM.generate using the seed, chokepoint ("bridge", "gate", "pass" or "random"), levels, cols and rows fields. The fields sync, so every peer draws the same board; changing one redraws it. defines names a module to require before drawing (for example "myMaps"), for a layout or setting of your own made with BM.defineLayout / BM.defineSetting; it is required on every peer, so the board is the same everywhere. picker = true shows on-screen buttons that cycle layout (generated included, with a New seed button), setting and quality. ref:board() returns the BM.build handle (cover entities, setCoverAlive, cellTop) and ref:map() the map definition, where ref = e.component.get("BattleMap"). Needs nothing else on the entity.