Step-by-step guides covering the plugin system and integration patterns. Each builds a working example from scratch.
Build a complete Catan-style board generator from an empty file. Covers:
HexApp.registerGame() — registering a new game plugingenerate() — terrain pools, seeded randomisation, hex grid generationgetColors() — flat colour maps for classic modegetImages() — tile image paths for artistic/kenney/realistic modesconstraints() — placement rules with automatic retryrendererOptions() — hex size and orientation overridesExport hex maps as SVG and integrate them into documentation, rulebooks, or other web projects. Covers:
hexmap:exportSvg postMessage command — requesting SVG from an embedded generatorHexSvg.toSVG() — direct SVG generation from hex dataHexSvg.toAnnotatedSVG() — adding highlights, tokens, arrows, and legends| If you want to... | Read |
|---|---|
| Create a new hex game plugin | Colony guide |
| Export maps as SVG files | SVG Integration guide |
| Embed maps without an iframe (SDK) | API: Consumer SDK |
| Embed maps via iframe | API: Embedding |
| Control an embedded map via JavaScript | API: postMessage Bridge |
| Use hex maps from an AI assistant | API: MCP Server |