the ceiling
Rough rock overhead in first person and over the shoulder, gone as the camera rises, and open sky on the Planes as NetHack says.
Builtneeds review1 change builtSeen all the timeLast touched November 28, 2026: a change of its own was written or changed. Commit f63dfe3b5.
In the terminal
The terminal shows no ceiling: the map is seen from above. NetHack's text says one is there on every level but the elemental and astral planes.
Quotes from NetHack
Crash! The ceiling collapses around you!
1 more quote
has_ceiling: in the endgame only the Plane of Earth has one
In Codex
Rough rock overhead in first person and over the shoulder, over the squares the map shows.
Builtneeds review3D form
Based on the real thing: The ceiling is the rough, unworked rock the level is cut into, 2.5 squares up, lit only by the lantern beneath it and the room's own light.
Details
The ceiling (N-312): one sheet of the walls' rock, its underside ceiling_height squares up (2.5, under the walls' lowest ragged tops, so they vanish into it), hanging up to ceiling_roughness lower in lumps from the caves' noise, drawn in the walls' stone that knows the map, so over the known squares it is rock lit by the lantern and dying into the dark at the front of the unknown as the floor does, and over the unknown it is the unknown's own color. A lit room's own light lies on its whole lid, read from the squares within two of each point and blended between them (N-2811: read square by square, the lid over the middle of a flow of lava three squares wide took none of it and hung as a dark square with straight edges overhead). Its faces look down: from above it is never drawn. It shows in first person and at the shoulder stop; as the camera rises toward it it lifts above the walls' tops and darkens away, eased with the camera; it also goes while a wall comes down for the camera below its height, during the stairs walk, and on the Planes of Air, Fire and Water and the Astral Plane (the status line's level name; NetHack's has_ceiling). Over a hallway the map shows (N-61) it comes hallway_ceiling lower (0.3), as much again by the hallway's walls, with lumps twice as deep and a finer roughness of their own, so a corridor reads as a tunnel dug through the rock and a room as a hall cut out of it; the tunnel follows the corridor's own line (from each corridor square to each corridor beside it and each door straight on, diagonal turns too) and is back at the room's height a square and a fifth from it, inside the rock or under a doorway's lintel. It is made again in place as the map shows more corridor.
- Id
codex.ceiling- Exact state
- Built, not reviewed
- Playtests
gallery-lit-room,gallery-dark-corridor,gallery-hallway,01-stairs-down- Settings
dungeon.ceiling,dungeon.ceiling_height,dungeon.ceiling_roughness,dungeon.hallway_ceiling- Code
crates/nh-scene/src/ceiling.rs,crates/codex-client/src/draw/ceiling.rs,crates/nh-plays/src/underway/view/materials.rs,crates/codex-client/src/draw/materials.rs,crates/nh-site/src/lib.rs,crates/nh-knobs/src/dungeon/ceiling.rs,crates/codex-client/src/config/shares.rs
Applies to everything on the map (1)
- 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-lit-room, lit room. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.Playtests: gallery-lit-room, gallery-dark-corridor, gallery-hallway, 01-stairs-down
Planned and proposed
In progress Corridors narrow toward the middle of their square under a low, lumpy ceiling.
Asked for in these words: “Danny (N-61, the director): "varying ceiling and wall protuberances and heights"”
Left to do: The ceiling is low and rough over hallways. The rubble along a corridor does not yet narrow toward its middle.
Planned Letters and stone stay sharp and calm at a distance, with no shimmer.
Details for builders
Id: ceiling. Lexicon subjects: lens.ceiling.
Design notes from NetHack
Piercers cling to it; digging up brings it down; a drum's earthquake shakes things loose from it.
Backlog rows
| N-61 | Built, not reviewed | Narrower hallways and ceilings |
| N-312 | Done | A ceiling in first person |
| N-6 | Built, not reviewed | Mipmaps for the letter atlas and surface textures (distant shimmer/blur). |
| N-282 | Built, not reviewed | Mipmaps and anisotropic filtering |




