doorways
An opening in a wall with no door in it, or a broken door.
Builtneeds review4 changes builtSeen on every levelLast touched December 2, 2026: a change of its own was written or changed. Commit 1f6ad3fb8.
In the terminal
Gray '.', the same symbol as floor; in the default tty only its place in the wall line tells it from floor. Diagonal moves through it are allowed (except on the Rogue level). The lowered drawbridge's portcullis square also shows S_ndoor.
Gray '.', indistinguishable on the map from a doorless doorway; farlook and stepping on it (mention_decor) tell "broken door".
Quotes from NetHack
This doorway has no door.
3 more quotes
This door is broken.
The door crashes open!
KABOOM!! %s was booby-trapped!
Decisions
No terminal letters painted on floors. Lines only on real edges.
Codex draws itFull text
No terminal glyphs on floors. Outlines only on real edges and corners; surfaces procedural and natural.
Backlog decisions: D-12The 3D view exists for three things. How far away things are down a corridor, which way a door faces, and which way you came.
Codex draws itFull text
What the 3D view is for. It serves three decisions a player makes better there than on the terminal: depth down a corridor (a line of monsters reads as a line), door orientation and what is through it, and facing as memory of where you came from. Camera and world are designed to make those three legible; everything else is atmosphere. New presentation work is judged against this.
Backlog decisions: D-22In Codex
Rooms have a worn bedrock floor and corridors rougher, darker rubble, woven into one surface.
Builtneeds review3D form
Based on the real thing: A room's floor is worn bedrock with low swells and shallow joints, darker than the walls and a little cool, and a corridor's is rougher, darker rubble that eases into it with no gap.
Details
The ground (N-52, N-307, N-309): geometry, not texture, a function of world position (periodic), in an 8 by 8 grid a square. Corridors are rubble up to floor_stones high (Voronoi stones about half a square across with lumps on them), a hallway_floor_darker (0.2) darker vertex color. Rooms, doorways and the floor under walls are worn bedrock, room_floor_relief (0.35) of that height: broad low swells (value noise, three cells a period) and flat-topped slabs with shallow joints, in a color a quarter of the way from the walls' warm gray toward the DevTeam's slate floor tile (other.txt 19, (71, 108, 108)): (0.70, 0.71, 0.68). The squares are woven like the pools (N-221): every square's ground has a level (flat: ice, a lowered drawbridge, a cloud, a down flight's opening, a named room's laid floor; bedrock; rubble; nh-scene `level`, from the map alone), and near each lower neighbor (within 0.3 of their shared edge, `mesh::nearness`) it eases into that neighbor's ground, reaching it exactly on the edge, so two squares meet with no gap in any view (the director: "contiguous spaces should be woven together kind of like water was as a fabric"). The floor under a wall beside a corridor is rubble, so a hallway stays rough to its walls; the darker color eases the same way. A named room's flagstones and planks close their sides toward a square that is not laid. Objects rest on the ground; soft lights sit on it. floor_stones 0 gives a flat floor.
- Id
codex.cobbles- Exact state
- Built, not reviewed
- Playtests
journey-game,gallery-dark-corridor,gallery-ground- Settings
dungeon.floor_stones,dungeon.room_floor_relief,dungeon.hallway_floor_darker- Code
crates/nh-scene/src/mesh/ground.rs,crates/nh-scene/src/build/terrain.rs,crates/nh-scene/src/noise.rs,crates/codex-client/src/draw/world.rs
| N-52 | Done | Caves less square |
| N-307 | Done | The floor woven into one surface |
| N-309 | Done | The plain floor as worn bedrock |
Seen from high up, walls, doors and mist shrink toward the floor so you can see into rooms.
Builtneeds reviewCamera or view
Details
Seen from high up (the map view, the director's wide shot; N-57), walls, doorway lintels, doors, bars and mist shrink toward the floor together by how high the camera is, to walls_from_above of their height, so rooms can be seen into; a falling door is cut too; the fog thins to haze_from_above and the ambient light rises to faint_light_everywhere_from_above. Flights of stairs keep their full height (the hero stands on their steps; N-64). N-2790: a lumpy cave wall cut lower is not squashed about its foot (which moved its bumps and left a ledge up to a tenth of a square along the edge it shares with a whole neighbor): it is drawn with a shell built to the cut's height from the same field of bumps, in lumpy_walls_cut_in_steps steps of its height (32; 0 squashes it as before), stretched the little rest of the way (`draw/walls.rs` `Lumpy`). Its top's rise is lowered by the same share, so a wall cut low keeps no ridge standing over the letters beyond it (batch 12: a `(` in gallery-hallucination's map view was cut in half).
- Id
codex.cutaway- Exact state
- Built, not reviewed
- Playtests
journey-game,gallery-forms- Settings
views.walls_from_above,light.haze_from_above,light.faint_light_everywhere_from_above,views.lumpy_walls_cut_in_steps- Code
crates/codex-client/src/draw/view/cutaway.rs,crates/codex-client/src/draw/things.rs,crates/nh-plays/src/shot/pose.rs,crates/codex-client/src/pov.rs
| N-57 | Done | A high diagonal overview camera |
A broken door topples away from whoever broke it, lies a moment, then sinks away.
Builtneeds reviewTransition
Details
A closed door that the map now shows broken or gone (kicked in, forced, blasted) falls over away from whoever broke it, the kicker's side when the last kick was at it, else away from the hero: a door the hero's own kick broke stands until the boot lands (0.2 s, N-71), as a door that held shudders from there; then it topples about its foot, gathering speed over 0.55 s, lies a moment, then sinks and shrinks away; it is cut low with the walls from high up. The doorway's frame stays. A door a monster in sight smashes down falls as "<Mon> smashes down a door." is said (N-2870, monmove.c:1609): the monster stands in the doorway and the core keeps sending plain floor under it, so nh-state draws the doorway (S_ndoor) under the one monster standing in a remembered-closed door at the words (two such monsters: neither, and that door falls when the map first shows it, as the monster steps out); "You see a door crash open." is drawn by the core itself.
- Id
codex.door_fall- Exact state
- Built, not reviewed
- Playtests
journey-game,monster-smash- Code
crates/nh-moments/src/kick.rs,crates/codex-client/src/draw/world.rs,crates/codex-client/src/draw/things.rs,crates/nh-plays/src/fall.rs,crates/codex-client/src/draw/doors.rs,crates/codex-client/src/draw/view/cutaway.rs,crates/nh-state/src/level.rs
| V-2 | Built, not reviewed | Door shudders on WHAMM, falls away and sinks when broken. |
The terminal's own floor characters are painted flat on the floor in their colors.
BuiltLetter
Details
Off by default (D-12): the terminal's own floor character ('.', '#', '}', the engraving's backtick) painted flat on the floor in its color, self-lit at terminal_dots_brightness, dimmer for a dark part of a room. The only way the 3D world shows an engraving's glyph or tells lit from dark floor.
- Id
codex.floor_glyphs- Exact state
- Built
- Settings
dungeon.terminal_dots_on_floor,dungeon.terminal_dots_brightness- Code
crates/nh-scene/src/build.rs,crates/codex-client/src/draw/world.rs
Applies to everything on the map (5)
- An empty or broken doorway is an opening in the wall with a stone lintel over it.
- Floors are packed earth with small pebbles, running on across squares with no letters on them.
- Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
- What the game showed on a square stays drawn under a monster or object that now stands there.
- The map is drawn as a 3D world of walls and floors, lit by the hero's torch and a faint glow.
Accepted pictures and playtests
A change to how this looks is compared with these pictures before it is accepted.
gallery-doors, doors. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.gallery-shopkeepers, general store. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.gallery-stairs, stairs. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.gallery-shop, shop. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.gallery-ground, room. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.Playtests: journey-game, gallery-dark-corridor, gallery-ground, gallery-forms, monster-smash
Planned and proposed
In progress Doors of stone, or dark with old carvings.
Asked for in these words: “Dad, 2026-11-10 (N-480): "I'd like to see the doors look more like stone. Or very dark with ancient looking carvings."”
Left to do: A stone door that cracks and settles as it falls when a door is broken, behind a knob that is off.
Details for builders
Id: doorway. Lexicon subjects: terrain.door.none, terrain.door.broken.
Design notes from NetHack
A gap in the wall line. Tile 12 (other.txt): a dark frame around open floor.
Breaking messages: "As you kick the door, it crashes open!", "The door crashes open!" (force bolt), "KABOOM!!" (door trap), "The door is razed!" (digging beam).
Backlog rows
| N-52 | Done | Caves less square |
| N-307 | Done | The floor woven into one surface |
| N-309 | Done | The plain floor as worn bedrock |
| N-57 | Done | A high diagonal overview camera |
| V-2 | Built, not reviewed | Door shudders on WHAMM, falls away and sinks when broken. |
| N-480 | Built, not reviewed | Doors of stone, or dark with old carvings |



















