staircases

Up and down staircases, and the branch staircases to the Mines and Sokoban, which turn yellow once used.

Terminal
staircases in Codex, first person
Codex: first person

Builtneeds review5 changes builtSeen on every levelLast touched December 1, 2026: a change of its own was written or changed. Commit d47fa6bda.

In the terminal

Gray '<' up and '>' down. Branch staircases look like ordinary ones until the hero has traversed them; then they are yellow. On the Rogue level ordinary stairs are '%', colorless.

Quotes from NetHack

Stairs down: a way to the next level.
doc/Guidebook.mn:494
2 more quotes
Dr. Ray Stantz: Hey, where do those stairs go? Dr. Peter Venkman: They go up.
dat/data.base:5259, the entry for stair* and branch stair* (Ghostbusters)
Up he went -- very quickly at first -- then more slowly -- then in a little while even more slowly than that -- and finally, after many minutes of climbing up the endless stairway, one weary foot was barely able to follow the other.
dat/data.base:5243, Norton Juster, The Phantom Tollbooth

Decisions

Stairs are real flights of steps, and taking them walks the flight.

Codex draws it
Full text

Stairs are directional flights with real steps: down is an opening whose steps slope away under the floor, up rises through the room. Taking them walks the slope (lateral and vertical); the next level is placed so the arrival point is exactly at the flight's end, and its staircase points back the way you came.

Backlog decisions: D-19

In Codex

Off an up staircase's high end, the hero walks down its steps and round its side, never dropping.

In progressTransition

Details

N-5352, N-210 (the director: "animate the movement down the stairs and around to the side - keeping realism always"). Codex draws an up staircase's flight rising over the squares beside its `<` to a wall's height, so a step from its high treads to a square off its end or its side was a drop of up to a wall's height, and climbing back a climb up a sheer face; the top end then hid the hero standing past it. Now such a step is walked as a person would: back down the treads to the highest one low enough to step off (two treads, STEP_OFF_AT_MOST 0.5), off the flight's side, along it and round to the square, or that walk the other way, at round_the_flight_seconds_per_square (0.18: about a second for the usual seven squares of path; it ships at 0, the old drop, until the director has watched its films: out of camera-lean at its second look, N-5352), eased at both ends, the foot going down or up the treads one by one. The side with open floor the map shows is taken; with none, the step is as before. Steps along the treads, onto or off the `<` itself and anything under STEP_OFF_AT_MOST are plain steps. NetHack's own step is one square and one turn; the walk is only how that step is drawn, and the hero arrives where NetHack put them. While they walk round, the camera from behind and above frames the walk's middle (a smooth bump over the walk) and pulls back until the whole path fits; where it stands nearly over the hero (a room three rows high, as on DL1) the picture keeps the camera's heading rather than spinning as the hero passes beneath (steady_heading: a sight line steeper than 70 degrees gives way to the heading by 80). First person rides the walk. With the walk off (as it ships) or on, the map view stays north past the flight's top (N-5434): what the eye behind would need where the step ends no longer pulls the map view's eye in toward the top step.

Id
codex.round_the_flight
Exact state
In progress
Playtests
round-the-flight
Settings
animations.round_the_flight_seconds_per_square
Code
crates/nh-plays/src/hero/motion.rs, crates/nh-plays/src/shot/pose/frames.rs, crates/nh-plays/src/shot/depth.rs, crates/nh-plays/src/shot/pose/walls.rs, crates/nh-knobs/src/animations/round_the_flight.rs
N-5352To doStepping off an up flight's top the hero's lower half stays hidden behind its top end, which stands as high as a wall, 0.3 squares behind a hero on the floor be
N-210To doThe behind camera loses the hero just past an up flight's top
N-5434Built, not reviewedAfter a step east past an up flight's top end, the map view stands about 45 degrees off north, though it always faces north like the minimap (D-53); older than

Stairs are a flight of twelve steps, down into an open stairwell or up through the room.

Built3D form

Based on the real thing: A flight of stairs is twelve stone treads a step high, each a laid block with its nose worn round, running a few squares down into an open stairwell or up through the room.

Details

Stairs as directional flights with real steps (D-19): twelve steps over stairs_length (3.2) squares and the wall's height. Down is an opening in the floor whose steps slope away underneath the neighboring floor, with low side walls (an open stairwell); up is a solid flight rising through the room from the staircase's square. Which way a flight runs is presentation, chosen from what the map shows: an up flight never runs over a door, another staircase or a feature when another way has none, then prefers the way with most room floor, and is decided again as more of the room is seen (N-59); down flights keep a fixed way per square; a staircase arrived on points back the way you came (D-42). On its own square the hero stands on the steps (a step down on '>', a step up on '<'). Whatever the map shows on the squares an up flight rises over stands on its steps (things_stand_on_steps; N-93, director 2026-10-31: "The thing should stand where the flight would rise, so on the steps"): a monster, an object, a statue, and the hero, who climbs onto them with the step that takes them there, and only then; the flight keeps its way and its length whatever stands on it. Ladders and branch stairs are drawn as stairs, in the same stone with a quiet cast of the glyph's color (yellow branch stairs, brown ladders: codex.stairs_in_their_color, N-649). Every step is a block of stone whose tread edges are worn round (N-227, D-67, the worn slab the altar uses): the nose rounded off by feet, the joint to the next block a shallow groove.

Id
codex.stair_flight
Exact state
Built
Playtests
01-stairs-down, 19-stairs-door, gallery-dark-corridor, 35-up-flight
Settings
dungeon.wear, dungeon.stairs_length, dungeon.wall_height, dungeon.things_stand_on_steps
Code
crates/nh-scene/src/build/terrain.rs, crates/nh-scene/src/mesh/stairs.rs, crates/nh-site/src/lib.rs, crates/nh-scene/src/memory.rs, crates/nh-scene/src/ground.rs, crates/nh-plays/src/hero/motion.rs
N-59DoneStairs beside a door: the stairs hid the door.
N-22Done~~Hero walks the stairs~~:
N-77DoneThings on an up flight's squares
N-93DoneAn up staircase never swallows the hero

Stairs the terminal draws yellow or brown carry that color quietly in their stone.

Builtneeds review3D form

Based on the real thing: A staircase the terminal draws in a color keeps it as a quiet cast in the stone of its treads, the same worn blocks, the same roughness, no light of its own, so the torch picks the color up as it picks up the stone.

Details

A flight drawn by a staircase glyph whose color is not gray (N-649) is cut in the level's stone with a cast of that color a fifth of the way in (STEPS_CAST, 0.22; on Sokoban's blue blocks nearly half, 0.45, since yellow in blue passes through gray; never past 0.6 however it grows): the stone's own color mixed toward the glyph's, its texture, roughness and grain the walls', no glow (a color in the stone, never gold leaf: D-75 allows the glyph's own yellow). NetHack 3.7 draws a staircase yellow (S_brupstair, S_brdnstair, CLR_YELLOW, include/defsym.h:124-125) once it is known to lead to another dungeon and the hero has used it (known_branch_stairs, src/stairs.c): the way into the Gnomish Mines and back, into Sokoban and back, Vlad's Tower and back, and DL1's up staircase from the first turn; until then it is gray, and so is its flight. A ladder is brown (S_upladder, S_dnladder, CLR_BROWN) and its flight takes a faint brown until ladders are drawn as ladders (N-667). Gray stairs (CLR_GRAY) and any staircase with color off (NO_COLOR) are the walls' gray stone exactly as before. The color is the one the port sends, the tty's own. The cast grows from the high views by the quiet rule (quiet_things_from_above, quiet_things_grow: unchanged up close, twice as strong at the map view). The DevTeam's tiles tell a branch staircase from a plain one only by its arrow's color (win/share/other.txt, # tile 29 (branch staircase up), # tile 30 (branch staircase down): the same red and brown frame as tiles 25 and 26, the arrow yellow fading to green instead of white and slate): the same stone, a yellow mark, nothing added. A letter standing on the steps keeps its own color. The flight drawn for a walk the game was not showing (N-26) stays gray: the terminal showed nothing there. The projection map and the terminal view already draw the yellow < or > and are unchanged. A branch staircase's cast is six tenths bolder than that in every view (STEPS_BRANCH_BOLDER 1.6, nh-scene stone.rs `cast_strength`; the director, 2026-11-28: "Slightly bolder"; a quarter moved it by too little to see), about 0.35 of the way up close, 9 to 11 levels more red over blue in every view, still matte, never gold; a ladder's brown keeps the cast as designed ("Keep the brown"). Off (stairs_color_strength 0), every flight is plain stone.

Id
codex.stairs_in_their_color
Exact state
Built, not reviewed
Playtests
gallery-branch-stairs
Settings
dungeon.stairs_color_strength
Code
crates/nh-scene/src/build/terrain.rs, crates/nh-scene/src/stone.rs, crates/nh-plays/src/picture/view/materials.rs, crates/codex-client/src/draw/stone.rs, crates/nh-knobs/src/dungeon/stairs_in_their_color.rs, crates/nh-scene/src/build/terrain_steps.rs
N-253Built, not reviewedThe quiet rule: stronger from above
N-649Built, not reviewedBranch stairs keep their yellow

Taking the stairs, the hero walks down or up a real flight of steps between the two levels.

BuiltTransition

Taking the stairs, the hero walks down or up a real flight of steps between the two levels.Taking the stairs, the hero walks down or up a real flight of steps between the two levels.Taking the stairs, the hero walks down or up a real flight of steps between the two levels.Taking the stairs, the hero walks down or up a real flight of steps between the two levels.
Details

Taking the stairs walks the flight (D-19, D-42): both levels stay put, the new one where it is and the old one a flight back and up (or down), placed so the square past the flight's foot (or head) is the hero's new square. Over stairs_walk_seconds (3.0) the hero walks the treads, from the step under the stair square's middle, then off the last step onto the new floor; they keep the way they faced (N-325), and the staircase arrived on points back the way they came; a staircase the game never showed under them (an object on it, a restore) is walked the way it would have been drawn (N-328). Going down, the new level's walls under the flight stand aside until the walk ends; all mist is cleared meanwhile; a flight the game was not showing (the hero stood on it since arriving, N-26) is drawn for the walk only. It plays only when the player typed '>' or '<' (D-40) and the hero did not stand on a trap the map showed: '>' into a seen hole or trap door falls and cuts (N-75); a square under the hero the map never showed (the stairs after a restore, N-26) still walks. Ladders are walked as stairs; trapdoors, holes, level teleports and portals cut, as the terminal does.

Id
codex.stairs_walk
Exact state
Built
Playtests
01-stairs-down, gallery-dark-corridor, journey-continuity, journey-game
Settings
dungeon.walk_the_stairs, dungeon.stairs_walk_seconds, dungeon.stairs_length, dungeon.wall_height
Code
crates/codex-client/src/draw/stairs.rs, crates/nh-plays/src/stairs.rs, crates/codex-client/src/draw/world.rs, crates/nh-moments/src/command.rs
N-53DoneGo downstairs more slowly.
V-10DoneAscending stairs transition.
V-11DoneStairs walk is too dark mid-way
N-75Done> into a hole or trap door plays the stairs walk
N-96DoneTruthful readings

Over an up staircase the camera rides above the steps instead of inside them.

BuiltCamera or view

Over an up staircase the camera rides above the steps instead of inside them.
Details

Over an up staircase's flight the third-person camera rides at least camera_above_up_stairs above the treads under it instead of inside the rising steps (N-38), easing up and down.

Id
codex.steps_clearance
Exact state
Built
Playtests
gallery-dark-corridor
Settings
camera.camera_above_up_stairs, dungeon.stairs_length
Code
crates/nh-scene/src/ground.rs, crates/nh-plays/src/shot/pose.rs
N-38Done5 | Camera inside the up-flight:

On Dlvl 1 the way out lets down daylight, or moonlight at night, on its flight.

Builtneeds reviewReaction to an event

Details

N-5471, the director's yes (2026-11-28). On Dlvl 1 the up stairs lead out of the dungeon (do.c:1518-1519: going up there is done(ESCAPED)). One spot light, standing past the top of the up flight and above it, as the opening to the surface would be, is aimed down the steps at the floor before the flight's foot: a soft patch of outside light on the treads, no shadows, no other square lit, every letter its own color. By day a warm white (never gold, D-75). At night, as NetHack's own clock counts night (calendar.c:215-220: before 6 or after 21 o'clock), it would be a blue-gray moonlight carried by its color (a deep blue against the lantern's warmth); after "You are lucky! Full moon tonight." (allmain.c:59) paler and a little brighter; after "Be careful! New moon tonight." (allmain.c:62) none. Those casts are built and tested but off: the client does not read the wall's clock (a picture would depend on when it was taken, D-34, D-35), and the game's night is not yet carried to it (N-5482), so a player sees daylight. It eases in and out over about a second, so nothing pops. Its strength falls as the eye rises (seen_from: all of it at a standing eye's height and the close views, 0.22 of it from the director's and the map's height, eased between), since from above the lit treads face the eye squarely: from the map the way out stays under the hero's and the monsters' letters (review round look-1128-0555-1). Strength: below 1 that share of its brightness; above 1 it reaches further and its cone widens, never brighter (D-92); 0 is the terminal's way, no light.

Id
codex.surface_light
Exact state
Built, not reviewed
Settings
light.surface_light_strength
Code
crates/codex-client/src/draw/sources/surface_light.rs, crates/nh-knobs/src/light/surface_light.rs
N-5471Built, not reviewedDaylight, or moonlight, down the first stair
Applies to everything on the map (3)
  • 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.

  • staircases in Codex, first personfirst person
  • staircases in Codex, close third personclose third person
  • staircases in Codex, director's viewdirector's view
  • staircases in Codex, map viewmap view
Gallery scene gallery-stairs, stairs. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • staircases in Codex, first personfirst person
  • staircases in Codex, close third personclose third person
  • staircases in Codex, director's viewdirector's view
  • staircases in Codex, map viewmap view
Gallery scene gallery-furniture-shadow, basin. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.

Playtests: round-the-flight, 01-stairs-down, 19-stairs-door, gallery-dark-corridor, 35-up-flight, gallery-branch-stairs, journey-continuity, journey-game

Planned and proposed

Planned A player's own forms for the hero, objects and features, not only monsters.

Planned An up staircase seen from above is cut down with the walls instead of towering over them.

Details for builders

Id: stairs. Lexicon subjects: feature.stairs.

Design notes from NetHack

Tiles 25-32 (other.txt): a dark stairwell with a white arrow, the arrow yellow and green on branch stairs. Branch stairs turn yellow once used.

Once used, its description adds the destination: "There is a staircase up to level N here."

Tile 26 (other.txt): an arrow pointing down into a dark stairwell.

Yellow once the hero has used it; DL1's up stairs are yellow from the start. Tile 29 (other.txt): a yellow-green arrow.

Gray until used, then yellow, and the description names the branch ("branch staircase down to the Gnomish Mines").

Backlog rows

N-5352To doStepping off an up flight's top the hero's lower half stays hidden behind its top end, which stands as high as a wall, 0.3 squares behind a hero on the floor be
N-210To doThe behind camera loses the hero just past an up flight's top
N-5434Built, not reviewedAfter a step east past an up flight's top end, the map view stands about 45 degrees off north, though it always faces north like the minimap (D-53); older than
N-59DoneStairs beside a door: the stairs hid the door.
N-22Done~~Hero walks the stairs~~:
N-77DoneThings on an up flight's squares
N-93DoneAn up staircase never swallows the hero
N-253Built, not reviewedThe quiet rule: stronger from above
N-649Built, not reviewedBranch stairs keep their yellow
N-53DoneGo downstairs more slowly.
V-10DoneAscending stairs transition.
V-11DoneStairs walk is too dark mid-way
N-75Done> into a hole or trap door plays the stairs walk
N-96DoneTruthful readings
N-38Done5 | Camera inside the up-flight:
N-5471Built, not reviewedDaylight, or moonlight, down the first stair
N-353To doOwn forms for the hero, objects and features
N-64DoneAn up staircase in the cutaway