the minimap

Codex's copy of the terminal's map in the corner, with the hero's facing.

The terminal shows this in words, not as a letter.
Terminal
the minimap in Codex, close third person
Codex: close third person

Builtneeds review3 changes builtSeen all the timeLast touched December 2, 2026: a change of its own was written or changed. Commit 4baed2dea.

In the terminal

The tty has no inset: its map is the main screen, and the hero is the '@' with the terminal's cursor on it.

Decisions

First person needs a minimap that shows where you are and which way you face.

Codex draws it
Full text

First person needs a minimap with position and facing.

Backlog decisions: D-2

Diagonals look longer than they play. Accepted. The minimap keeps the true distances.

Left as the terminal shows it
Full text

Distance. NetHack's metric is Chebyshev; the 3D world is Euclidean and a diagonal looks √2 longer than it plays. Accepted. The minimap carries the truth about distance; no geometry tricks.

Backlog decisions: D-23

In Codex

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-262DoneThe projection map

While the game asks for a position, the minimap boxes the cursor's square in gold.

In progressCamera or view

Details

While the game asks for a position, the minimap boxes the cursor's square in gold, aligned to the font's measured advance and kept inside the cropped minimap even where nothing has been seen. Arrows move it correctly; its alignment awaits a close look (V-6).

Id
codex.minimap_cursor
Exact state
In progress
Playtests
journey-game
Code
crates/codex-client/src/hud.rs
V-6Built, not reviewedMinimap farlook cursor lines up with the glyphs.

F2 and the corner map draw the player's own colors and highlights, as their own terminal does.

Builtneeds reviewCamera or view

Details

What the player's own terminal draws beyond NetHack's colors, drawn where Codex draws the terminal's letters (N-119, N-151, N-78; X-459's cells): on the terminal view (F2) and the corner map, a symset's glyph colors (protocol 4's custom_color: IBMGraphics_2, NetHack's Windows default and Dad's, makes the Gnomish Mines' walls brown, Sokoban's blue, Gehennom's red and Ludios's yellow, as wintty.c draws them on a console of 256 colors); on F2's two status lines, the player's status highlights from the same runs the HUD draws (nh_state::status::lines: color, bold, dim, underline, blink, and inverse as the hit point bar's block), each cell in the terminal's own color with only the attributes the player asked for ("normal", botl.h HL_NONE, is none: Dad's hitpoints/100%/gray&normal stays the line's gray; the HUD's brighter text stays out of F2; status_lines.draw_highlights = false keeps only the colors); and while a position prompt highlights the squares it accepts (getpos.c, with bgcolors: a stinking cloud's center, a jump, a polearm, a grapple, a spell's target), the color the tty paints behind them (protocol 4's frame, HI_ZAP's bright blue) behind those squares, on F2 and on the corner map, where wintty.c also leaves the pet's mark off; on the corner map the cursor's box stays over the blue, and on a square the prompt paints it dims to half in its blink rather than going out, since nothing else there says where the cursor is. The terminal's own bright blue holds a gray letter at 1.6:1, so the blue is drawn at position_highlight of its brightness: 0.45 a deep blue, 5.2:1 for a gray '.' in F2 and 4.4:1 on the corner map (hud-terminal, measured); 1 the terminal's own. own_colors = false draws NetHack's colors alone, gray, as before. Behind F2's letters the inverse blocks and the blue come up with the letters as the world lies down (N-499). The HUD's own status lines and the world are unchanged.

Id
codex.own_colors
Exact state
Built, not reviewed
Playtests
hud-terminal
Settings
terminal_view.own_colors, terminal_view.position_highlight
Code
crates/nh-state/src/terminal.rs, crates/codex-client/src/hud.rs, crates/codex-client/src/minimap.rs, assets/shaders/minimap.wesl, crates/nh-knobs/src/terminal_view/own_colors.rs
N-119Built, not reviewedThe terminal view and the minimap in the player's own colors
N-151Built, not reviewedThe F2 view's status lines in the player's highlights
N-78Built, not reviewedThe position prompt's highlight is dropped

F2 gathers the world into the terminal as the map flies onto its rows, and the game opens back out.

Builtneeds reviewCamera or view

Details

N-263 (the minimap as the projection point, N-233; the director's Marathon reference): switching to the terminal view, the map flies from its corner into the terminal's own map rows, its squares stretching from square to the terminal's tall cells, while the world fades, so each square lands where the terminal's letter appears and gives way to it; switching back, the other way (gathers_the_map). The game opens on the terminal, held there until the hero is on the map, then the world opens out of it over opening_seconds, the map flying to its corner. Keys are never held: any F2 meanwhile ends the opening.

Id
codex.terminal_gathers
Exact state
Built, not reviewed
Playtests
journey-dads-options
Settings
terminal_view.gathers_the_map, terminal_view.opening_seconds, terminal_view.fade_seconds
Code
crates/codex-client/src/hud.rs, crates/codex-client/src/minimap.rs
N-233To doThe minimap as the projection point
N-263DoneMode switching

Accepted pictures and playtests

A change to how this looks is compared with these pictures before it is accepted.

  • the minimap in Codex, close third personclose third person
  • the minimap in Codex, map viewmap view
Gallery scene gallery-hud-menu, menu. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.

Playtests: journey-game, map-north-up, map-turning, minimap-turned, hud-terminal, journey-dads-options

Planned and proposed

In progress As the hero topples the camera turns to a three-quarter view, and a new level turns the map a page.

Left to do: The minimap turning a page on a new level, which the director set aside.

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.

Details for builders

Id: minimap. Lexicon subjects: lens.minimap.

Backlog rows

N-262DoneThe projection map
V-6Built, not reviewedMinimap farlook cursor lines up with the glyphs.
N-119Built, not reviewedThe terminal view and the minimap in the player's own colors
N-151Built, not reviewedThe F2 view's status lines in the player's highlights
N-78Built, not reviewedThe position prompt's highlight is dropped
N-233To doThe minimap as the projection point
N-263DoneMode switching
N-267Built, not reviewedThe death witness pose and the map's page turn
N-62DoneA heading-up minimap