facing
Which way the hero faces. Codex's own memory of where you came from, never sent to the game.
Builtneeds review4 changes builtSeen all the timeLast touched December 2, 2026: a change of its own was written or changed. Commit 4baed2dea.
In the terminal
NetHack has no facing: the '@' has no orientation, and every direction key names a compass direction (hjklyubn, or the number pad's digits), the same whatever the hero did before.
Decisions
Walking, the arrows are relative to facing. Up steps forward, left and right turn.
Codex draws itFull text
Arrows relative to facing when walking: ↑ forward, ↓ back (keeps facing), ←/→ turn in place (90°, Shift for 45°: D-50), Shift+↑ run. One NetHack command per press. F2 terminal view, F3 first/third person. NetHack's own direction keys stay absolute.
Backlog decisions: D-9The 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
Arriving by the stairs facing a wall, the hero turns to the nearest open way once the walk ends.
Builtneeds reviewCamera or view
Details
On arrival the hero faces along the flight taken, which can be straight into a wall (N-24). Once the stairs walk is over, never during it (D-42), if the map shows a wall (or rock) on the square ahead, the hero turns to the open way nearest the flight's, as an ordinary eased turn: the fewest eighths of a turn, toward the side with more open squares ahead when both turn as far (nh-site open_way). A door ahead is a way, closed or not, and the hero keeps facing it. Facing still remembers the way you came as closely as the room allows (D-22). Nothing is sent to the game.
- Id
codex.arrival_turn- Exact state
- Built, not reviewed
- Playtests
01-stairs-down,45-letters-in-view-arrival- Settings
camera.turn_from_wall_on_arrival- Code
crates/codex-client/src/pov.rs,crates/nh-site/src/lib.rs
| N-24 | Done | On arrival the camera faces down the flight's direction, which can be straight into a wall; pick a facing with room ahead. |
The view leans into a turn and comes back upright as the turn ends.
BuiltCamera or view
Details
The view leans into a turn by up to lean_into_turns_degrees, with the turn's speed, and returns upright as the turn ends (faded out in the map view).
- Id
codex.lean- Exact state
- Built
- Playtests
journey-game- Settings
camera.lean_into_turns_degrees- Code
crates/nh-plays/src/shot/pose.rs
The whole level sits in the top right corner, with what the camera sees laid on it in gold.
Builtneeds reviewCamera or view
Details
The projection map (N-262; D-2, D-23, D-69): always the terminal's whole 79 by 21 frame, north up, in square cells as wide as max_width_percent of the window allows (square_pixels at most, whole pixels), so where the hero stands in it is news as on the terminal. Drawn on the GPU: the ground as shapes (walls the bright line of a room as the terminal's | and -, hallways bands joining their neighbors, a doorless doorway a gap in the wall as the terminal's '.', doors in the terminal's brown, water, lava and ice in their colors, stairs chevrons), remembered ground dimmer than ground in sight as the terminal's dark room floor; monsters, objects and marked ground (a fountain, an engraving) as the terminal's letters once a square is letters_from_pixels physical pixels, a mark in the letter's color below; pets the terminal marks underlined or ringed; detected monsters and piles inverse where the port sends the flag; the hero's own '@' gliding with the world's and a caret the way they face; the camera's picture where it meets the floor as one thin gold line (view_strength, cut at view_reach_squares toward the horizon, and stopped at the level's extent, inside the four corner marks, N-755: from the high views it ran on across the world), the screen's edge laid on the grid, never a cone of sight; ground the map writes for the first time or that changes lighting up as the world draws it (squares_glow_when_drawn; Moment::Mapped); a dark plate (opacity) under known squares only, feathered into the unknown, and four corner marks. While the game asks for a position it grows to the top middle of the screen (grows_when_choosing_a_square). The terminal-text minimap the HUD once drew (drawn_as = letters) is retired (X-6004): a codex.toml that names it gets the terminal style. Since N-298 (the director: "The original command prompt style is crucial to retain") the default is drawn_as = terminal: every square the map shows is its terminal character in its NetHack color, in cells of the terminal's own proportions (1.65 as tall as wide; the atlas's middle mapped so each letter keeps its own shape), on the same plate with the same camera frame, hero's @ and caret and glow; projection keeps the ground as shapes (walls as lines, hallways as bands), one knob away, so both can be shown to Dad. N-62 (D-123, question 47, off by default: D-74 stands unless the film changes the director's mind): with turns_with_the_view, in the views that turn with the hero (first person, behind, the director's) the map is a round window turned_radius_squares out from the hero, as tall as the whole map's panel, turned so the way the camera looks is up; its squares are square, its letters stand upright, the caret and the camera's frame turn with it, a thin gray ring is its edge. The map view, a square being chosen, the terminal view and a level turning keep it whole and north up (`nh_plays::map_panel`, `minimap.wesl` `turned`/`upright`). N-641: between the two the map eases over turned_map_opens_seconds instead of changing in one frame, in two moves: the window turns north in its corner (the first half), then travels along the top of the picture and widens into the whole level (in its corner, grown for a square, or flying to the terminal view), a square's size going one way from the window's to the level's; closing, the same moves backward. Its dark glass and ring fade as it leaves the corner, the map is drawn only inside the panel, and the view's caption keeps to the corner until the map has arrived. The north-up map is not touched (with turns_with_the_view off nothing changes). V-6: farlook's cursor is drawn from the same map coordinates as the letters, so it sits on its letter's cell at every size (measured on minimap-turned's frames at 1280 and 1920 wide, and one step in each direction). Filmed beside today's in tests/films/map-north-up.json and map-turning.json.
- Id
codex.minimap- Exact state
- Built, not reviewed
- Playtests
journey-game,map-north-up,map-turning,minimap-turned- Settings
minimap.show,minimap.drawn_as,minimap.opacity,minimap.square_pixels,minimap.max_width_percent,minimap.letters_from_pixels,minimap.view_strength,minimap.view_reach_squares,minimap.squares_glow_when_drawn,minimap.grows_when_choosing_a_square,light.gold_color,minimap.turns_with_the_view,minimap.turned_radius_squares,minimap.turned_map_opens_seconds- Code
crates/nh-plays/src/map_panel.rs,crates/codex-client/src/minimap.rs,crates/nh-moments/src/mapped.rs,crates/codex-client/src/hud.rs,crates/nh-state/src/terminal.rs
| N-262 | Done | The projection map |
A turn or step can start gently and settle, sweep evenly, cut instantly, or lurch and then crawl.
BuiltCamera or view
Details
How turning and moving are eased, one of four styles for each (turning_feel, stepping_feel): spring (a critically damped spring, the default: starts gently, settles without overshoot, holding a turn key turns smoothly), ease (the same sine ease-in-out sweep every time, turn_seconds and step_seconds), snap (an instant cut like the classic grid crawlers) or exponential (the first version: lurches, then crawls to a stop). The director has not picked a default yet (N-19).
- Id
codex.motion_style- Exact state
- Built
- Playtests
journey-game- Settings
camera.turning_feel,camera.stepping_feel,camera.turn_snappiness,camera.step_snappiness,camera.turn_seconds,camera.step_seconds,camera.turn_smoothing,camera.step_smoothing- Code
crates/nh-plays/src/smooth.rs
| N-19 | Done | Director chooses a default turn style (turn_motion). |
Applies to everything on the map (2)
- The hero faces one of eight ways, changed by turning, stepping, aiming or attacking.
- Up steps forward, down steps back, and left and right turn in place without using a game turn.
Accepted pictures and playtests
Playtests: 01-stairs-down, 45-letters-in-view-arrival, journey-game, map-north-up, map-turning, minimap-turned
Planned and proposed
Planned The climb between levels is calm, the camera above the new floor.
In progress A minimap that turns with the hero in the views that turn, so map and arrows agree.
Left to do: Built as a setting, off by default, which the director plays with before choosing a default.
In progress Every camera move from one engine, turns keeping their speed and the room opening once.
Left to do: Each move in closed form, and the one-length swing on by default once the director has seen its film
In progress Where the camera is and what it frames, as plain data with goldens.
Left to do: The shot's next round, with one engine for its moves.
Details for builders
Id: facing. Lexicon subjects: lens.facing.
Backlog rows
| N-24 | Done | On arrival the camera faces down the flight's direction, which can be straight into a wall; pick a facing with room ahead. |
| N-262 | Done | The projection map |
| N-19 | Done | Director chooses a default turn style (turn_motion). |
| N-40 | To do | 5 | The ascent between levels is legible but busy: |
| N-62 | Done | A heading-up minimap |
| N-266 | Built, not reviewed | One choreography engine |
| N-271 | To do | Turns as moves that keep their speed |
| X-65 | Built, not reviewed | The camera's shot as data |
