WorkboardStageMap
The pixel map rendered inside the Workboard atlas
There is no public WorkboardStageMap component. It is the pixel-art village renderer used inside
the composite Workboard atlas: buildings, rooms, and paths are drawn from the game
map geometry to represent agent activity zones.
@downcity/ui does not export this renderer. Render Workboard and let it draw the atlas.
What is public
The geometry this map draws comes from the exported builder:
import { buildWorkboardGameMapConfig } from "@downcity/ui";
const gameMap = buildWorkboardGameMapConfig({
board,
activeZoneId: "active",
selectedAgentId,
});gameMap.zones, gameMap.pointsOfInterest, and gameMap.actors are the values the pixel map
renders. Build them once and pass them to your own overlay when you need the same layout.
Related
- Workboard — the composite board you render
- WorkboardGame — the exported game map builder and public game types
- WorkboardStage — the stage layer behind the atlas