falling, teleporting and portals between levels
Every other way to change level. Trap doors, holes, level teleport, magic portals, the planes.
Builtneeds review4 changes builtSeen on some levelsLast touched November 29, 2026: a backlog row it names changed (X-306). Commit 5eb99bfb6.
In the terminal
"A trap door opens up under you!" then, at the end of the turn, the new level; falling more than one level: "You fall down a shaft!", "a deep shaft!", "a very deep shaft!"; flying over it deliberately ('>'), "You swoop down through the trap door!". Not falling: "You don't fall in." (levitating, flying), "You don't fit through." (huge), "You are jerked back by your pet!". The hero lands at a random spot; objects there may follow.
"There's a gaping hole under you!" then the fall; digging through the floor: "You dig a hole through the floor." "You fall through..."; kicking a throne may open the floor itself: "The floor opens up under you!"; on arrival "The hole in the ceiling above you closes up." when the hole was not a lasting trap.
"You fall down the stairs." ("ladder"): 1-3 damage ("tumbling down a flight of stairs"), a steed throws its rider, a ball and chain drag. Also arriving by trap door or hole is a fall ("Falling, you touch the cockatrice corpse." is a death).
"You activated a level teleport trap!" (or the scroll); with teleport control getlin "To what level do you want to teleport?" ('*' random, '<' or '>'); then "You materialize on a different level!" (verbose) on arrival; on a no-teleport level or with magic resistance: "You feel a wrenching sensation.". Above the dungeon: level 0 "You are now high above the clouds..." (and fall to death unless flying), -9 "You feel deliriously happy." "(In fact, you're on Cloud 9!)", -10 or higher "You arrive in heaven." "Thou art early, but we'll admit thee.".
"You activated a magic portal!" then, at the end of the turn, the level change and "You feel slightly dizzy." ("You feel dizzier." if already stunned): 3.7 stuns the hero for three turns on arrival. In the endgame without the Amulet: "You feel dizzy for a moment, but nothing happens...". A leashed pet too far: "You shudder for a moment.". (3.6 said "You feel dizzy for a moment, but the sensation passes." on arrival and did not stun.) The places surveyor's voice.feeling.portal holds the destinations' lines.
From level 1's up stairs with the Amulet ("Beware, there will be no return! Still climb?"), the hero arrives at a random spot of the Plane of Earth; the status line's level field reads "Earth" (then "Air", "Fire", "Water", "Astral Plane"); the plane's own lines follow ("Well done, mortal!", "But now thou must face the final Test...", "Prove thyself worthy or perish!"; on Air "What a strange feeling!"...: the places surveyor's voice.feeling.earth, .air, .water). The Wizard returns if alive: "A voice booms out..." "So thou thought thou couldst kill me, fool.". Each plane's exit is a magic portal (moment.level_change.portal).
"You arrive on the Astral Plane!" "Here the High Temple of <god> is located." (dat/astral.lua); the level's monsters become hostile, three to six rival adventurers appear, and a worthy hero gets a guardian angel: "A voice whispers:" "Thou hast been worthy of me!" (with Conflict on: "A voice booms:" "Thy desire for conflict shall be fulfilled!"). The 'entered the Astral Plane' achievement is recorded. The arrival lines are also the places surveyor's voice.feeling.astral.
Quotes from NetHack
A trap door opens up under you!
19 more quotes
You fall down a very deep shaft!
There's a gaping hole under you!
The hole in the ceiling above you closes up.
You fall down the stairs.
tumbling down a flight of stairs
To what level do you want to teleport?
You materialize on a different level!
(In fact, you're on Cloud 9!)
You arrive in heaven.
You activated a magic portal!
You feel slightly dizzy.
You feel dizzy for a moment, but nothing happens...
You feel dizzy for a moment, but the sensation passes.
Well done, mortal!
Prove thyself worthy or perish!
planename = "Earth";
You arrive on the Astral Plane!
Here the High Temple of %d is located.
Thou hast been worthy of me!
Decisions
The stairs walk plays only when you took the stairs. Falls and teleports cut.
Left as the terminal shows itFull text
PROVISIONAL. The stairs walk plays only when the player took the stairs (>/<, D-19); other level changes (trapdoor, level teleport, a deeper status line) cut, as the terminal does. Before, a depth change alone also played it. Rejected: keeping the depth fallback (a trapdoor walked as stairs).
Backlog decisions: D-40In Codex
On a fall, the floor opens under the hero, they drop through it, and the camera follows them down.
Builtneeds reviewTransition
Details
X-302 (D-99; the director, 2026-11-14, on the films of X-300, where the level left lay down onto the map between the drop and the landing: "I think it's better not to pivot all the way out to the minimap before returning. We should just have the camera follow the hero down the hole basically. You've almost got it perfect but it needs work in the sense that we have to keep legible. The viewer still doesn't understand why the return out to the minimap."; then: "The map can be known before the camera follows, we can wait that beat, no?"). When the game says the hero falls to the new level (nh-moments' FellThrough: "You fall through...", dig.c:785; "A trap door opens up under you!", "There's a gaping hole under you!", "The floor opens up under you!", "You fall down a deep shaft!", trap.c fall_through; "You jump down the hole.", do.c dodown), the fall is a stairs walk with no flight (codex.stairs_walk's two levels and its camera, nh-plays' Walk with falls set): the level left stands a wall's height over the new one, the square the hero fell from right over the square they land on. Four beats in the game's own order, 2.4 s in all (fall_seconds). The hole: the floor of the hero's square and what lay on it drop away to the level below, a fifth of a second ahead of the hero. The drop: the hero's letter drops straight down through the hole to the floor below, gathering speed and eased only at the landing (0.77 s), and the lantern goes down with them, so the level left falls into the map's cool light and the lantern's light comes up out of the hole. The camera stays where the player had it, looking at the hole. The map: as the hero lands, the map in the corner becomes the new level's, glowing where it is newly written, and the picture holds (0.24 s). The camera: it goes down after the hero on an S-curve (1 s), keeping the player's framing, while the level left goes dark and opens out from the hole as it does going down the stairs, so the room below is found through the widening hole. Depth's dial is not turned: the world never lies down. In first person the eye is the hero's and drops when they do: the floor falls from under the feet, the floor's edge passes up the picture, and the eye lands in the room below; the rest of the move is the level above going. Keys typed meanwhile wait and hurry it, as on the stairs (fall_seconds_when_keys_wait). Off (fall_through_the_floor), a fall turns over on the map as a level teleport does (codex.level_lies_down). A level teleport, a portal and Sokoban's silent holes say none of those lines and keep that turn. Inferred: that the new level is the one fallen to (the words in this look or the one before, no stairs taken, the status line's depth not shallower, no word since that the hero did not fall); the look-alikes are tests (a monster at the trap door, the shopkeeper's warning, the stairs fallen down, levitating over an open trap door, words two looks old). And that the level fallen to lies directly below: a trap door may drop several levels, and the picture shows one.
- Id
codex.fall_through- Exact state
- Built, not reviewed
- Playtests
gallery-branches- Settings
dungeon.fall_through_the_floor,dungeon.fall_seconds,dungeon.fall_seconds_when_keys_wait- Code
crates/nh-moments/src/falls.rs,crates/nh-moments/src/catalog.rs,crates/nh-plays/src/stairs.rs,crates/nh-plays/src/shot/pose.rs,crates/codex-client/src/draw/stairs.rs,crates/nh-plays/src/underway/passage.rs,crates/nh-plays/src/picture/passage.rs,crates/codex-client/src/draw/passage.rs,crates/codex-client/src/minimap.rs
| N-75 | Done | > into a hole or trap door plays the stairs walk |
| N-499 | Done | The projection, built: depth's dial and three thresholds |
| X-300 | Done | A fall has its beats |
| X-302 | Built, not reviewed | In a fall the camera follows the hero down the hole |
A new level the game brings without a word can lie down onto the corner map and stand up.
Builtneeds reviewTransition
Details
N-499 (D-99; N-75's case, D-40's cut on this branch): a new level with no stairs to walk, no word of a fall and no word of a teleport (nh-moments' LevelChange with no stairs taken, no FellThrough and no LevelTeleported: a level the game brings without saying how, a fixture loaded in a test; a fall and a level teleport have their own, codex.fall_through and codex.level_teleport, and come here only with those turned off) turns depth's dial (codex.depth_dial) down and up once. The level being left stays where it stood, lit by its own map, the camera holding the pose it had there and the hero's letter its square; it lies down onto the map in its corner, which still shows that level; when the picture is flat (0.45 of between_levels_seconds) the old level goes, the map shows the new one, and the new level stands up out of the map round the hero. The stairs keep their walk (D-42); the game's first level stands up with the opening, not this. Keys never wait: another key and the whole move is given 0.45 s. Nothing is inferred: the signal is the moment nh-moments already emits. Off (between_levels), the new level appears at once, as the terminal's does. Off by default since X-306: the director, on its films, "It just reads as a really quick glance up and back and you don't get the clarity that you're teleporting. I don't think we need to go all the way to the minimap." A teleport of its own is surveyed in docs/studies/teleport.md and not built.
- Id
codex.level_lies_down- Exact state
- Built, not reviewed
- Playtests
gallery-branches- Settings
lying_down.between_levels,lying_down.between_levels_seconds- Code
crates/nh-plays/src/underway/passage.rs,crates/nh-plays/src/picture/passage.rs,crates/codex-client/src/draw/passage.rs,crates/codex-client/src/draw/world.rs,crates/codex-client/src/draw/stairs.rs,crates/codex-client/src/minimap.rs
| N-75 | Done | > into a hole or trap door plays the stairs walk |
| N-499 | Done | The projection, built: depth's dial and three thresholds |
On a level teleport, the level goes dark in to the hero, lights circle them, and the new one forms.
Builtneeds reviewTransition
Details
X-307 (the director, 2026-11-14, on the films of a level teleport lying down onto the corner map: "I think probably it needs some lead up and build down. Maybe some of the butterfly kind of swirl around the camera? It just reads as a really quick glance up and back and you don't get the clarity that you're teleporting. I don't think we need to go all the way to the minimap."; then, asked what swirls: "I think probably small things circling the hero, but I'd be interested to see us try it with both."; the survey is docs/studies/teleport.md). When the game says the hero went to another level by magic (nh-moments' LevelTeleported: "You materialize on a different level!", teleport.c level_tele, said with the verbose option; "You activated a magic portal!", teleport.c domagicportal), the teleport is a stairs walk with no flight and no drop (nh-plays' Walk with the Teleport way): the two levels lie in one plane, the hero's square of the level left on the square they arrive on, so the hero's letter does not move in the picture, and the two never show at once. Four beats, 2.4 s (level_teleport_seconds). The lead-up: small soft lights lift from the floor beside the hero and begin to circle them, all one way, each at its own height and reach; the level left goes dark from far away inward, slower the nearer the hero, its stone going a square and a half inside the dark (the stairs walk's fade, lit inside its front). The dark between: only the hero's letter and the lights, drawn in close and at their fastest; the map in the corner becomes the new level's. The arrival, the game's "materialize": the new level forms from the hero outward the same way, its light behind its stone. The build-down: the lights widen, sink to the floor and go out. The camera keeps the player's framing throughout; with level_teleport_turns_the_camera (360 by default since the director chose it from the films: "I think turning. And length and number of lights do feel right, yes.") it turns that many degrees round the hero over the move, the walls making way as for a turn the player made, and at 360 ends on the heading it began with; the map view never turns. Depth's dial is not turned. Keys typed meanwhile wait and hurry it, as on the stairs. Off (level_teleport_shows), or with the game's verbose option off (the game then says nothing), the new level appears at once. Inferred: that the new level is the one the words were about (the words in this look, or a portal's in the look before; no stairs taken; no word of a fall). Not built: a teleport within a level, which still cuts; the sway the survey offers while the status line shows Conf or Stun.
- Id
codex.level_teleport- Exact state
- Built, not reviewed
- Playtests
gallery-branches- Settings
dungeon.level_teleport_shows,dungeon.level_teleport_seconds,dungeon.level_teleport_seconds_when_keys_wait,dungeon.level_teleport_motes,dungeon.level_teleport_motes_brightness,dungeon.level_teleport_turns_the_camera- Code
crates/nh-moments/src/level_teleports.rs,crates/nh-moments/src/catalog.rs,crates/nh-plays/src/stairs.rs,crates/nh-plays/src/shot/pose.rs,crates/codex-client/src/draw/stairs.rs,crates/nh-plays/src/underway/passage.rs,crates/nh-plays/src/picture/passage.rs,crates/codex-client/src/draw/passage.rs
| X-306 | To do | A level teleport needs a lead-up and a build-down, and no map |
| X-307 | Done | A level teleport of its own: lights circling the hero, and the camera turning or not |
On a level teleport the new level is written as its map on the ground, then its walls rise.
Builtneeds reviewTransition
Details
N-531 (the director, 2026-11-15, on the level turning over onto the corner map, N-499: "It's a good idea but not executed well yet... Level transitions are really important because they set the tone for what's about to happen and are a continuity surface for the game"; on the reason to keep it, the hero stays and the page under them changes: "Yes, it's basically like that! It feels like a nod to the original Nethack in a way that anchors it and keeps you aware that you're in a projection and the game is in the know too"; on the teleport: "maybe only the destination gets rendered in the 2D? Anyway play with these tropes and see what fits, I'm down for a survey"). Chosen from the survey's films, 2026-11-16: "I really liked 3w too! Let's take it"; and for first person: "First person should stay the same... I like the original the best out of the four of them". On by default (level_teleport_writes_the_map): the same teleport as codex.level_teleport (the same length, the same lights, the level left going dark in to the hero), and then the new level is written as the terminal draws it, its own letters lying flat on its squares (the wall's - and |, the floor's ., a door's +), as the light reaches each square from the hero outward; then its walls rise from their letters, the nearest first, as the letters go. The camera never moves, and makes no turn of its own; the hero turns from a wall in the dark between the levels, unseen, so nothing turns while the level stands up. In first person too, written on the ground round the eye standing (the director, 2026-11-16, asked which ways to another level should be written: "Let's do the 3w everywhere then, make it consistent"); a cursed potion of gain level's rise through the ceiling (potion.c:1104) is now one of them. The survey's other ways were removed (2026-11-16, "Yes, let's remove them now"): the world lying down onto the terminal's rows or onto a map under the hero, through the level left, the level arrived on or both ("Page-turn feels a bit too much like the pipe transitions in Super Mario World"). Inferred: nothing beyond codex.level_teleport's.
- Id
codex.level_teleport_through_the_map- Exact state
- Built, not reviewed
- Playtests
gallery-branches- Settings
dungeon.level_teleport_writes_the_map- Code
crates/nh-plays/src/stairs.rs,crates/codex-client/src/draw/stairs.rs,crates/nh-plays/src/underway/passage.rs,crates/nh-plays/src/picture/passage.rs,crates/codex-client/src/draw/passage.rs,crates/nh-plays/src/hero/motion.rs,crates/nh-plays/src/shot/pose.rs
| X-306 | To do | A level teleport needs a lead-up and a build-down, and no map |
| N-499 | Done | The projection, built: depth's dial and three thresholds |
| N-531 | Done | The page turn: a level teleport seen through the map |
Accepted pictures and playtests
Playtests: gallery-branches
Planned and proposed
In progress At a trap door or hole the floor drops away, the hero tumbles, and the new level lands from above.
Left to do: The director's look at the new films. No tumble or thud on landing. The fall's red edge still comes at its start.
In progress Teleporting, the hero's letter breaks into thin lines and re-forms where it lands.
Left to do: The director's look at the films, still and turning. A teleport within a level, shorter and with no turn.
In progress The world lies down onto the map it is made from, wall onto letter, and stands up out of it.
Asked for in these words: “Danny, 2026-11-14 (D-99): "Would you like to send a Fable agent out in a single fleet thread to build the first iteration and near final draft of what the projection mode would look like when complete?"”
Left to do: The director keeps or drops each move from its films. Magic mapping's beat in the world and the ending are not built.
Idea Dust gathers into a door, and the hero rematerializes from a cloud.
Asked for in these words: “Danny, 2026-11-14 (D-102, N-514): "Yes, I'd like to work on the animation primitives for these purposes, as well as backlog them."”
Details for builders
Id: falling. Lexicon subjects: moment.level_change.trapdoor, moment.level_change.hole, moment.level_change.fall, moment.level_change.level_teleport, moment.level_change.portal, moment.level_change.endgame, moment.level_change.astral.
Design notes from NetHack
'You materialize on a different level!'; above the dungeon, messages only: 'high above the clouds', 'you're on Cloud 9!', 'You arrive in heaven.'
The status line's level field shows one word, Earth, Air, Fire, Water, then Astral Plane; each plane has arrival lines ('Well done, mortal!').
Backlog rows
| N-75 | Done | > into a hole or trap door plays the stairs walk |
| N-499 | Done | The projection, built: depth's dial and three thresholds |
| X-300 | Done | A fall has its beats |
| X-302 | Built, not reviewed | In a fall the camera follows the hero down the hole |
| X-306 | To do | A level teleport needs a lead-up and a build-down, and no map |
| X-307 | Done | A level teleport of its own: lights circling the hero, and the camera turning or not |
| N-531 | Done | The page turn: a level teleport seen through the map |
| N-233 | To do | The minimap as the projection point |
| N-514 | To do | Dust that assembles |
