Paint a map in Hearthtable

A campaign's GM can paint a battle map by hand: choose a size, paint the ground, draw walls, doors and windows on the square grid, place trees, rocks, furniture and small buildings, and save it as a scene. The walls you draw become the scene's line of sight on their own, and the grid you paint on is the grid tokens snap to. Nothing is generated at random. Every square looks the way you painted it.

The map painter is in preview. Open it from a campaign's table: Scenes → Paint a map. To change a painted scene, open Scenes → Edit painted map. Painting needs a computer; phones play on painted maps but don't paint them.

Sizes

Maps are measured in squares. One square fits a standard 1-inch miniature base and stands for 5 feet. Start from a preset, or type your own size from 8 to 200 squares a side:

Preset Squares Feet Good for
Gigantic battlefield 150 × 100 750 × 500 armies, a whole valley, a siege
Battlefield 100 × 70 500 × 350 a large clash, a village with its fields
Countryside 72 × 48 360 × 240 a road, a farmstead, a wood
Dungeon level 50 × 40 250 × 200 rooms and corridors, starts as flagstone
Battle mat 36 × 24 180 × 120 the size of a folding play mat
Large room 20 × 20 100 × 100 a hall, a tavern, one fight

Resize changes the size later. You choose which part to keep (a corner, an edge or the middle), and the painter says what would be cut before you apply it. When the map is already on the table, saving the new size moves its tokens, pins, templates, drawings, fog and table-drawn walls with the painting, so everything stays on the same squares (cues saved before the resize keep their old positions). Undo a resize before saving and nothing moves.

Painting

Tool Key What it does
Brush B Paints ground under the cursor, 1 to 9 squares wide, round or square
Fill F Fills the area of one ground type, stopping at walls, doors and windows
Rectangle R Fills a rectangle on the half-square grid
Eraser E Paints the starting ground back and removes walls and objects under it
Wall W Draws a wall from corner to corner, straight or at 45°
Low wall L A fence, hedge or rubble line: drawn on the map, stops neither sight nor tokens
Door D Puts a door on a wall, 1 to 4 squares wide; click an edge, or drag along one
Window N Blocks movement, not sight
Secret door S Looks like a wall to players until you open it
Object O Places a tree, rock, table, chest and more; [ and ] turn it by 15°
Building T Stamps a small building: walls, a door and its floor in one step
Select V Picks objects and walls to move, turn, resize, copy or remove

Ground comes in 16 kinds: grass, meadow, forest floor, dirt, mud, sand, gravel, cobbles, flagstone, tiles, planks, snow, shallow water, deep water, lava and a chasm. It is painted on half squares, so a road or a shore can wander without lining up with the grid.

Undo and redo take whole strokes, up to 100 steps. Drag with the middle button, hold Space and drag, or use two fingers to move around; scroll or pinch to zoom; +, − and 0 zoom in, out and to the whole map.

No two squares alike

Painted maps are drawn by Ramphearth's own code, in your browser, from the ground you painted. No pictures are downloaded, and nothing is random. The look is worked out from where each spot is on the map, so the same map always looks the same, on every screen.

Tiled maps look cheap when the same picture repeats every square. The painter avoids that: each kind of ground mixes several layers of detail at sizes that don't divide into each other, small details (tufts, pebbles, cracks) are placed on a scattered pattern rather than a grid, and edges between kinds of ground are soft and uneven. A check in the build measures how alike neighbouring stretches of ground are and fails if a repeat shows up.

Without WebGL 2, the painter draws a simpler, flat version of the same map and says so.

Walls and sight

Every wall, door, window and secret door you draw becomes the scene's line of sight when you save:

Doors work at the table as they do on any scene: the GM clicks a door to open or lock it, and players open an unlocked door next to their token. Opening and closing a door doesn't change the painted map; it changes only the scene's live sight. A secret door looks like wall to players until the GM reveals it at the table; from then on every player sees it as a door. See Line of sight in Hearthtable for how sight is worked out.

Tokens and the grid

A painted scene's grid is set from the map: 70 pixels a square, 5 feet a square, snapping on. You can't type a different grid for a painted scene, so the squares you painted and the squares tokens snap to are always the same. A 1 × 1 token sits in the middle of a square and a 2 × 2 token fills four, at every map size. A diagonal wall runs through square centres, so a token set down exactly on one is placed just off it, on the side it was dragged from.

Zoomed out, the grid shows only every 5th line (every 10th on a map over 100 squares across) so the painting isn't buried under graph paper; the # button in the painter hides the grid altogether.

Saving

Save keeps the map. Save & play also puts it on the table as a scene (or updates the scene already showing it) and takes you back to the table.

If someone else saved the same map while you were painting, the painter asks whether to load their version or save yours as a copy. An unsaved painting is kept in this browser and offered back the next time you open the painter.

A map holds up to 3,000 wall pieces, 4,500 sight walls and 2,000 objects, and its saved data is at most 512 KB, so even a gigantic map takes far less room than a picture. A campaign holds up to 100 painted maps. They count toward the workspace's tabletop storage.

What players receive

While a scene shows a painted map, each player's browser receives:

Like a picture map, the whole ground reaches the player's browser, and fog and line of sight hide it on screen. Secret doors and GM-only objects never leave the server for a player. A GM who previews the table as a player sees exactly this copy.

For developers