traps

The ^ in seven colors. Each color is two or three different traps, so a change to one must fit the others.

Terminal
No picture of this is on the site yet.
Codex

Builtneeds review2 changes builtSeen on every levelLast touched November 29, 2026: a backlog row it names changed (X-306). Commit 5eb99bfb6.

In the terminal

A '^' in the trap's color (web '"', vibrating square '~'), drawn only once the trap has been seen (tseen): triggered, watched being triggered, found by searching or detection. Water and lava cover traps. Many traps share a color, so the letter and color do not name the trap: cyan for arrow, dart and bear traps; gray for falling rock, rolling boulder and statue traps; brown for squeaky boards, holes and trap doors; bright blue for sleeping gas, magic and anti-magic; black for pits and spiked pits; magenta for both teleporters; orange for fire traps, trapped doors and trapped chests. Farlook names the kind. Hallucination changes trap names in messages and farlook, not the trap glyphs on the map; trap detection while hallucinating maps traps as random objects.

Quotes from NetHack

A trap (once you have detected it).
doc/Guidebook.mn:504, the Guidebook's line for '^'
3 more quotes
A trap usually won't appear on your map until you trigger it by moving onto it, you see someone else trigger it, or you discover it with the 's' (search) command
doc/Guidebook.mn:2143
You("find %s.", an(trapname(trap->ttyp, FALSE)));
src/detect.c:1956
"bottomless pit", "polymorphism trap", "devil teleporter", "falling boulder trap", "anti-anti-magic field", "weeping gas trap", "queasy board", "electrified web", "owlbear trap", "sand mine", "vacillating triangle",
src/trap.c:7106, the first of halu_trapnames[]: what traps are called while hallucinating

Decisions

One style, fused from all the art seeds. A place looks different only where NetHack says it does.

Codex draws it
Full text

Art direction (director, 2026-10-29). One style, fused from all the art seeds: the ink-and-watercolor storybook of 1970s–80s module art (whimsical, bright, funny, a little grotesque), Klimt's gold, kintsugi, the Renaissance, R. Crumb's comix, Mordor and the rest of NORTH_STAR.md, intermingled into one look everywhere. Not a swappable skin, not a twist here and there, and not minimalist or rigid: those were misreadings of D-1 and D-6 (and of the north star's "minimalist by design", which was about not trivializing the game, not about austerity). Agents build art direction as the director asks, without pushing back on it. First: lumpier caves (N-52).

Backlog decisions: D-49, D-59, D-1, D-6

Codex draws letters, not a terminal's line graphics. The player's own ASCII symbols are kept.

Left as the terminal shows it
Full text

PROVISIONAL. Symbols: the port keeps the player's plain-ASCII symbols (custom SYMBOLS=, boulder, the Rogue level's), and where the symset would draw something else (DECgraphics' line-drawing letters, IBM code-page bytes, curses or UTF-8 symbols) it sends NetHack's default symbol for the glyph instead. The client draws letters, not a terminal's graphics; the player's options are untouched. Rejected: mapping DEC/IBM to Unicode box drawing (walls are 3D; the minimap and terminal view would need a font that has them, for no new information); always the default symbols (would drop a player's own ASCII choices).

Backlog decisions: D-43, N-30

In Codex

From the high views, standing letters lean back to face the camera and grow a little.

Builtneeds reviewCamera or view

Details

Each camera composes letters for its playstyle (D-63, N-63). Letters stand upright and turn only about the vertical, so from the map view's look (about 52 degrees down) and the director's wide shot (about 76 degrees down) they were squashed slivers, about 5 pixels tall from the director. In those two views every standing letter (monsters, objects, statues, features, traps and the hero's own, and the falling copy of a killed monster's letter, codex.kill_topple, N-218; the hero down in a pit too, codex.pit_sink) leans back toward the camera by a share of its downward look (lean_back_in_map_view, lean_back_in_director_wide_shot: 1 faces the camera) and grows (grow_in_map_view 1.2, grow_in_director_wide_shot 1.33, never wider than its square). The lean and growth blend in as the camera rises and out as it comes down, so behind the hero and in first person letters stand upright at their size as before. A leaning letter keeps its middle over its square and its lowest point where it stood, rising a little to lie above the floor's stones. Lying back further than it stands (past 45 degrees) a letter casts no shadow: the torch above the hero would lay a dark copy of it beside it on the floor. Boulders, iron balls and the other forms keep their shape. Only the camera's own height and look are used. The hero's own letter grows a little past the others there, about 1.15 times, as the terminal's cursor marks it (codex.hero_from_above, N-142).

Id
codex.letters_from_above
Exact state
Built, not reviewed
Playtests
journey-game, journey-dads-options
Settings
characters.lean_back_in_map_view, characters.grow_in_map_view, characters.lean_back_in_director_wide_shot, characters.grow_in_director_wide_shot
Code
crates/nh-plays/src/shot/compose.rs, crates/codex-client/src/draw/world.rs, crates/codex-client/src/draw/letters.rs, crates/codex-client/src/draw/things.rs, crates/nh-plays/src/shot/pose.rs, crates/codex-client/src/pov.rs, crates/codex-client/src/draw/kills.rs
N-63DoneLetters seen from high up
N-99DoneLetters in view
N-218DoneA kill seen from above falls where it can be seen

In a pit the hero's letter sinks 40% into a hollow, then crawls out to its edge. The pit stays.

Builtneeds reviewReaction to an event

Details

N-91, kept (the director, 2026-10-31: "The pit should be 40% depth."; animations 7 and 27). On the game's words for going down into a pit, the hero's letter drops into the floor by pit_depth (0.4) of its height with gravity in pit_fall_seconds, sinking a little past the bottom and settling back, once its step onto the square has arrived. The square's floor opens into a soft hollow cut into the same stones (nh-scene's Form::Pit, mesh::pit: rough rim from noise fixed to the place, darker toward the bottom (how dark a value on its own material, assets/shaders/pit.wesl, so the view moving it builds no mesh again: X-116), no line around it, meeting the next squares' floors exactly); the world swaps it for the square's floor. The letter stays down while the game keeps the hero there; each "You are still in a pit." tugs it up by pit_tug of the drop and it slips back. On "You crawl to the edge of the pit." it rises over pit_climb_seconds, leaning forward (pit_climb_lean_degrees), onto the pit's edge pit_climb_to_edge squares the way the hero faces, and steps off from there. The pit stays, as it does in NetHack: the hollow remains while the map shows a trap there, and the game's own ^, drawn once the hero steps off, stands down in it; it goes when the game draws something else there (a boulder filled it). Leaving the level puts it away, and coming back shows it again (N-206): the pits the hero fell into are filed in the one memory under the level's key (nh-state's Remembered, filed by nh-moments' remember, X-64), so a level returned to shows the hollow under the game's own ^ where the hero fell, and a late watcher's catch-up files them too (N-196). A teleport, a new level or another square brings the letter up at once. The behind camera dips pit_behind_dip of the drop; the first-person eye drops pit_eye_drop of the way to the rim (the core itself limits sight to the adjacent squares from a pit). From the high views the pit is small, so its bottom is darker there (pit_hollow_darkness_from_above, D-63). Seen from there the hero's letter also leans back and grows as every standing letter does (codex.letters_from_above), in one rotation with the climb's lean and a gesture's tilt, and still drops by pit_depth of its plain height, so a grown letter sinks no deeper than the hollow; the behind camera's dip adds to its ride to one side (codex.clear_line_ahead). A spiked pit's damage still flashes and shakes, but its knock-back gives way to the fall. Force and weight, so no light. It draws only what the messages said, a pit the hero was in, never a trap the map has not shown.

Id
codex.pit_sink
Exact state
Built, not reviewed
Playtests
gallery-pit
Settings
animations.pit_depth, animations.pit_fall_seconds, animations.pit_hollow_darkness, animations.pit_hollow_darkness_from_above, animations.pit_tug, animations.pit_climb_seconds, animations.pit_climb_lean_degrees, animations.pit_climb_to_edge, camera.pit_eye_drop, camera.pit_behind_dip, characters.monster_size, dungeon.floor_stones
Code
crates/nh-moments/src/catalog.rs, crates/nh-moments/src/pits.rs, crates/nh-moments/src/remember.rs, crates/nh-state/src/remembered.rs, crates/nh-scene/src/mesh/pit.rs, crates/nh-scene/src/model.rs, crates/nh-plays/src/hero/gesture.rs, crates/codex-client/src/pov.rs, crates/codex-client/src/draw/letters.rs, crates/codex-client/src/draw/pit.rs, assets/shaders/pit.wesl
N-91DoneFalling into a pit, and crawling out
N-206To doPits, what the keep left
X-64Built, not reviewedOne memory
Applies to everything on the map (4)
  • Altars, thrones, graves, sinks and traps stay letters that stand upright on the floor.
  • 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

Playtests: journey-game, journey-dads-options, gallery-pit

Planned and proposed

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 Caught in a trap or held, the hero's letter strains against what holds it.

Left to do: Bear traps, webs and being held by a monster still show nothing.

In progress A pit is remembered on return, and every failed climb tugs, not only the first.

Left to do: Every failed climb tugging, a flying hero digging down, a broken wand of digging, the floor dot over the hollow, a filled pit.

Planned A trap that is one thing is drawn as that thing.

Details for builders

Id: traps. Lexicon subjects: trap.

Design notes from NetHack

Trigger messages include clicks, squeaks in twelve pitches, "KAABLAMM!!!", gushes of water and towers of flame. Most tiles are a red-gold disc with the trap's emblem; pits and holes are openings.

"KAABLAMM!!!" on triggering; the blast leaves a pit and scatters objects.

A gush of water hits the head, an arm or the whole body. The tile's emblem is a blue drop.

"You activated a magic portal!" then "You feel slightly dizzy." Tile 69 (other.txt): a ring of red and orange fire around a swirling yellow and white center.

Tile 70 (other.txt): a white web in the corner of the square. Fire burns it; Sting cuts through it.

"You feel a change coming over you." The tile's emblem is a blue zigzag.

"You feel a strange vibration under your feet."; the lit Candelabrum "glows with a strange light" there. Tile 75 (other.txt): a diamond of yellow dots.

Backlog rows

N-63DoneLetters seen from high up
N-99DoneLetters in view
N-218DoneA kill seen from above falls where it can be seen
N-91DoneFalling into a pit, and crawling out
N-206To doPits, what the keep left
X-64Built, not reviewedOne memory
X-306To doA level teleport needs a lead-up and a build-down, and no map
X-307DoneA level teleport of its own: lights circling the hero, and the camera turning or not
N-113To doTraps that are one thing