How-To: Build Rooms for Levels with Heights¶
last-verified: 2026-10-15 against
feature/dungeon-height-levels
Generated dungeons can climb and drop: a road steps up a level through a climb room, the ground around it follows with banks, and the border banks with it. This page is what you set by hand to make the pieces. How generation uses them is in Dungeon System → Height Levels.
When in doubt, save the asset and read the validator. The dungeon config's validator checks every field on this page and says what is wrong in plain words.
The grid in one picture¶
one plugin cell 10 m x 10 m x 4 m one height level = 4 m (RoomUnit.Z)
one ground tile 3 x 3 cells = 30 m every room and fill tile sits on this grid
North = +X, East = +Y the camera looks North-East: up-screen is North and East
North (+X)
+-----------+
| | a room's origin sits at the centre of a tile;
West | o | East doors sit on the middle of a tile side
| |
+-----------+
South
The pieces¶
| Piece | What it is | Placed by |
|---|---|---|
| Content room | A room the topology asks for (start, road, landmark, exit). Flat, a climb, or a set piece bigger than one tile | Generation, door to door |
| Filler tile | Flat ground around the road | The fill, around the rooms |
| Rise tile | Ground that banks up to a higher neighbour (1 level = bank, 2 = cliff) | The fill, where the ground steps |
| Border tile | The wall or river around the field; a banked one also steps up along the border | The fill, around the field |
You make content rooms often. Rise and border tiles you make once per domain.
The one rule for ground¶
Every tile side sits at its tile's level along its whole length. That's what lets any two pieces meet. The only exception is the bank itself, which always has the same profile:
height
top ─────╮ flat lip: 1.5 m from the high edge
│╲ face: 3 m per level
│ ╲___ toe: 1 m per level, running out
│ ‾‾‾‾‾‾────── 0 toward the tile's far side
high edge far side
Nobody matches that curve by eye. The shapes live in one file, Tools/Python/height_tiles_common.py (bank(),
height()), and Tools/Python/build_height_steps_kit.py builds every kit tile from it. To make a piece:
- New look, same shape: start from the kit tile of that kind and change only what lies away from its sides
(dressing, rocks, the road's path inside). Keep the outer 4 m of a climb's East and West sides as they are.
- New shape: add it to height_tiles_common.py and run the kit script. height_steps_seams.py then proves its
edges meet every neighbour.
No tool yet locks the edges of a hand-sculpted mesh to the profile; until one exists, the two routes above are the safe ones.
A climb room¶
Steps the road up one level (or two) on its way North.
- Size: one tile, two cells tall for one level (
FirstPoint-1,-1,0 /SecondPoint2,2,2), three for two. - Doors: the South door at Z 0, the North door at Z 1 (or 2).
- Constraints: add a Direction Constraint allowing North and East, so the bank always faces up-screen. Entered from its high door, it's a descent and still faces the camera.
- RandomDoor: off. Generation picks the door; with RandomDoor on, the plugin swaps it for any door.
- Ground: the North side flat at the upper level, the South side flat at 0, the East and West sides the bank profile (they meet rise tiles there).
A set piece bigger than one tile¶
A landmark or composed room that spans 2x2 tiles, with ground stepping inside it.
- Bounds: whole tiles, origin at a tile's centre:
FirstPoint-1,-1,0 andSecondPoint5,5,(height) for 2x2. - Doors: on the middle of a tile side.
TileLevels: one entry per tile that isn't at level 0. Key: the tile's offset from the origin tile (X = North, Y = East), value: its level. A raised North-East tile of a 2x2 room is(1, 1) = 1.- Ground: each tile's outer sides at that tile's level. Where the ground steps inside the room, the step reaches the room's outer side as the bank profile, inside the lower tile.
- A wall facing the camera runs along a tile's diagonal (South-West to North-East): it's the only grid line the camera looks straight at.
- Walked one way? List the first door in
EntryDoorsand give the room a Direction Constraint for its authored turn. It is then placed only where the run already heads its way, and never walked backwards.
Where landmarks and side rooms go¶
The topology decides which room a landmark (or the Remnant Realm room, or any side room) hangs off: it is placed behind that room, through one of its free doors. A junction room doesn't say which door leads to the landmark. Give it two or more ways out; generation picks the door per run. The landmark's own settings are what steer it: its entry door and turn constraint rule out the doors it can't come through that way.
The distance rules still apply on top (LandmarkMinCellsFromStart, the Remnant band): a layout that breaks them is
thrown away and retried. If the topology hangs a landmark too close to the start for its minimum, every layout breaks
it, and the validator says so.
Keeping a layout you like¶
A node's dungeon draws a new layout on each entry. To keep one layout for a playtest, set Start Layout Seed on the
preset (UPresetCharacterAsset, beside its Start Node ID): every entry into its start node during that preset's session
then builds that layout, and intel still rolls as usual. Real players are untouched. A change to the generator or the room
pools can change what a seed builds; Content.Dungeon.GenerationRegression fingerprints each preset's layout room by room,
so it fails when that happens.
Rise and border tiles (once per domain)¶
| Tile | Kind | Shape | Fields |
|---|---|---|---|
| Bank, cliff | Rise | Straight, Inner corner, Outer corner | RiseLevels 1 or 2; higher ground on the North (and East for corners) |
| Wall, river | Edge | Straight, Inner corner, Outer corner | EdgeStyle (and EdgeStyleEast on corners): the look of each side |
| Banked wall or river | Edge | Straight only | RiseSide East or West, RiseLevels 1 or 2 |
All of them are the filler's size. Each pool holds its own kind: rises in RiseTiles, borders in EdgeTiles.
Wire it into the dungeon config¶
- Rooms go in their slot's pool, as before.
RiseTiles: the rise tiles. Without them, steps stay as open seams.MaxHeightLevels: how far the lowest and highest ground of a run may differ (2–4 reads well; 0 = no limit).FillPolicy:EdgeStylefor the far sides (a tall wall is a backdrop),NearEdgeStylefor the sides between the camera and the player (keep it low: water or a drop).
Check it¶
- Save the room data and the config. The validator flags: entry doors that don't exist, RandomDoor left on,
a climb without a Direction Constraint or without a rise tile for its step,
TileLevelsoutside the room, a room off the tile grid, a banked corner border, a rise tile of the wrong size, a tile in the wrong pool, and a landmark or Remnant distance minimum that no path through the topology can reach. - Generate a few runs. Put the config on a
DungeonTestActorin a test map and play a few seeds. In the log,Space-fill ... 0 fill steps no rise shape fitsmeans the ground closed everywhere.SatisfiesHeightStepslines name layouts that were thrown away and why (a few per run is normal). - Kit sweep (optional):
Tools/Python/height_steps_sweep.py <seeds>with the editor on the kit map, thenheight_steps_seams.pyfor the seams between tiles.
Not built yet¶
- Real art tiles: the kit is greybox. A domain needs about 25 ground tiles (rises, cliffs, borders, corners).
- A tool that locks the edges of a hand-sculpted ground mesh to the profile.