settlement-atlas

Maps of places for tabletop games, drawn by code at true scale: towns, hamlets, landings, ruins, river valleys and 5 ft battle maps. You describe the place to your coding agent. It writes the place, renders it, looks at what it drew, fixes it, and hands you the map with a Roll20 file.

Get it on GitHub · Benchmark gallery

Willow Ford, a river town with a stone bridge, a market, a temple on a knoll, a wharf, a mill on the brook and fields all round

Willow Ford, the example town: 1.2 by 1 km at 20 m squares, about 250 houses.

Where it came from

I draw the maps for my campaign with a small Node pipeline: every house is placed by code at its real size, houses face their roads, fields follow the land, streams wander. My players liked the maps and wanted to make their own. So the pipeline became a package you can give to your own coding agent, with a skill that teaches it how to work. Claude Code and Codex pick it up from the repository by themselves.

One place, three views

A place is written once, in metres: the river, the roads, the ground, every building. A map is a frame onto that world at some scale. Because each view reads the same world, the house on the town map is the same house on the battle map.

Battle map of the bridge foot at 5 ft squares: the stone bridge with its flagstones, a paved bridgehead, river stairs, moored boats, houses on both sides of the road

The bridge foot at 5 ft squares, 48 by 32 squares: the same houses, plus the close detail a battle map needs.

The valley around Willow Ford, six by four and a half kilometres: the river, a large wood to the north-east, patchy fields, the mill brook

The valley around it at 250 m squares: woods painted as canopy, fields that thin out away from town.

Hand it to your agent

Clone the repository, install it, and start Claude Code or Codex in the folder. Then ask for a place:

Make a fishing village of about 200 people on the north shore of a lake, with a temple on a rise. 25 m squares for Roll20.

The agent scaffolds a world file, renders a quick draft and opens a contact sheet: the whole map with a coordinate grid, close-ups of the busiest parts, and an audit that rings houses standing in water or on a road, overlapping buildings, colliding labels and a grid that does not line up. It fixes what it finds, renders again, and finishes with a JPG and a .uvtt file for Roll20 or Foundry, named pins, and a note of what it invented. No browser and no network needed after installing; a draft takes about ten seconds.

Does it work? A benchmark

I wanted to know whether a fresh agent could actually do this with nothing but the repository. So the repository carries its own benchmark: a script hands a headless agent a clean copy and one request, and nobody answers its questions. There were four requests: a lake fishing village, a walled crossroads town, a ruined river landing at 5 ft squares, and a forest hamlet with a watermill. Runs used Claude Code with Sonnet 5.5 and Codex with gpt-6.2-astra, with and without the skill.

The first round showed the same mistakes from both agents: walls drawn as circles, clearings as ellipses, a town wall with an empty belt inside, sparse battle maps. Each mistake turned into a rule or a library feature, and the reruns got better.

Walled town from the first round: a near-circular wall with an empty belt between the wall and the houses

First round: a wall a compass could draw, with nobody living along the inside of it.

Walled town after the fix: an irregular wall that hugs a dense town, four gates, suburbs along the roads

After the fix: the wall follows the town, houses reach it, suburbs spill out of the gates.

With the final skill, all eight runs produced a usable, correctly gridded Roll20 map in under five minutes, with a clean audit. Runs without the skill did well too: most of the quality comes from the engine and its examples, and the skill adds specific rules and the habit of looking at the result. One run per case and one judge, so the scores are a direction, not a measurement. The gallery has every map.

Battle map of a ruined river landing by Claude Code: plank floors with holes, a smashed boathouse, a broken pier and reeds

A ruined landing at 5 ft squares, by Claude Code. Battle maps get their best detail from the agent drawing its own.

Lake fishing village by Codex: lanes climbing from a fish landing to a temple on a rise

A lake fishing village, by Codex.

Built to be modified

The first version had one look, a warm painted atlas that suits river country. Nobody’s campaign looks quite like mine, so the second version is built for your agent to change: rewrite it, add to it, take it somewhere I did not think of. A map’s style comes in four layers, each in its own small files: the paint (colours, fonts, paper), the symbols (how a tree, a roof or a boat is drawn), the forms (what gets built: terraces, courtyard houses, a mill) and the fabric (how streets and blocks fill the land). atlas add look desert writes a working starter in the right folder, the audit and contact sheet show what broke, and the tests check every seam.

Willow Ford six times: in the default painted atlas, a grim dark look, a sooty industrial look, a clean survey look, a snowy look in blues and greys, and next to it the Hiroshige print it came from

The same town and seed in five looks: atlas, grim, soot; survey and kambara. Only one small file changes each time. The last one’s colours were taken from Hiroshige’s “Evening Snow at Kambara” (Cleveland Museum of Art, CC0) with atlas palette.

Paint goes a long way, but not all of it. A dark river town still reads as a rice village; a place only changes character when the layers under the paint change too.

Close-up of a blighted hamlet: dead trees, a shrine in a walled yard, a gibbet on the green, graves outside the village, gardens gone to seed

Thornhedge, blighted: the grim symbol set (dead trees, ruins, gibbets, graves) and a variant written in the map’s own frame script.

Gloamwater, a dark canal district: dense blocks of terraced houses between streets and canals, bridges, a market square, a mill, warehouses along the river docks

Gloamwater, a canal city: all four layers at once, with a block fabric of streets and canals filled by terraces.

Harrowgate, a walled old town: skewed blocks of houses round a market, a wall with towers grown round the blocks, four gates, fields outside

Harrowgate: the same block fabric, skewed and warped, with a wall grown round the blocks afterwards.

Does the invitation work? I gave fresh agents two places nothing shipped could draw: a desert caravan town at an oasis and a fjord village of turf longhouses. All four runs extended the engine instead of bending a preset: each wrote its own look and symbol set, three wrote new building generators, and the test suite still passed with their additions. One run had to edit shared code to add a roof colour; that was a missing seam, and it is fixed now.

Skarvik by Codex: a snowy fjord shore with boat-shaped turf longhouses along a road, boat sheds on the water, pine forest up the slope

Skarvik, by Codex: its own look, snowy pines and a turf longhouse generator, none of which shipped with the engine.

Limits

Top-down exteriors only: buildings are roofs, with no interiors and no lighting walls in the Roll20 file. The block fabric still lays fairly even lattices; old cities want more warp, curved canals and more variety from block to block.

How it was made

Directed by me, built by Claude Opus 5.5 from my campaign pipeline, tested by Claude Code and Codex agents working blind, and reviewed by Codex before each release. Rendering uses resvg (MPL-2.0); the fonts are IM FELL English, Ma Shan Zheng, Pirata One, Bebas Neue, Courier Prime and Fira Sans (all OFL). The code is MIT.

This page's text was drafted by Claude and has not yet been rewritten by Jonas.