iron bars

Iron bars, a cyan #. They block the way but not the view.

Terminal
iron bars in Codex, first person
Codex: first person

Builtneeds review2 changes builtSeen on some levelsLast touched December 2, 2026: a change of its own was written or changed. Commit 1f6ad3fb8.

In the terminal

Cyan '#' (HI_METAL). Seen through; walked into: "You cannot pass through the bars." Missiles that do not fit through clatter with a material-dependent sound word.

Quotes from NetHack

Stone walls do not a prison make, Nor iron bars a cage;
dat/data.base:2780, Lovelace, To Althea from Prison
3 more quotes
You cannot pass through the bars.
src/hack.c:1034
"", "Whang", "Whap", "Flapp", "Clink", "Clonk"
src/mthrowu.c:1454, barsounds[]: the word printed when an object strikes the bars, chosen by its weight and material
The iron bars are dissolved!
src/mthrowu.c:1437

Decisions

Things look like they feel. Boulders are stones, iron balls are iron, bars are bars.

Codex draws it
Full text

Things look like they feel (director): heavy things look heavy. First: boulders are big lumpy stones (an exception to letters-as-letters), iron balls are iron, iron bars are bars.

Backlog decisions: D-18

In Codex

Iron bars are six dark iron rods from floor to wall top with three cross bars.

Built3D form

Based on the real thing: Iron bars are round rods as thick as a thumb with flat rails, wall-high, rusting where the floor is damp.

Details

Iron bars are bars (D-18): six dark iron rods from floor to the top of the wall with three cross bars, across the wall line (door_axis), in a dark metallic iron (0.22 gray, metallic 0.85). The tty's cyan '#'. The uprights are round rods, turned one by one, with rust creeping up from the foot where the floor is damp (N-227, D-67; a vertex color on the iron).

Id
codex.bars
Exact state
Built
Settings
dungeon.wear, dungeon.wall_height
Code
crates/nh-scene/src/build/terrain.rs, crates/nh-scene/src/mesh/things.rs

Seen from high up, walls, doors and mist shrink toward the floor so you can see into rooms.

Builtneeds reviewCamera or view

Details

Seen from high up (the map view, the director's wide shot; N-57), walls, doorway lintels, doors, bars and mist shrink toward the floor together by how high the camera is, to walls_from_above of their height, so rooms can be seen into; a falling door is cut too; the fog thins to haze_from_above and the ambient light rises to faint_light_everywhere_from_above. Flights of stairs keep their full height (the hero stands on their steps; N-64). N-2790: a lumpy cave wall cut lower is not squashed about its foot (which moved its bumps and left a ledge up to a tenth of a square along the edge it shares with a whole neighbor): it is drawn with a shell built to the cut's height from the same field of bumps, in lumpy_walls_cut_in_steps steps of its height (32; 0 squashes it as before), stretched the little rest of the way (`draw/walls.rs` `Lumpy`). Its top's rise is lowered by the same share, so a wall cut low keeps no ridge standing over the letters beyond it (batch 12: a `(` in gallery-hallucination's map view was cut in half).

Id
codex.cutaway
Exact state
Built, not reviewed
Playtests
journey-game, gallery-forms
Settings
views.walls_from_above, light.haze_from_above, light.faint_light_everywhere_from_above, views.lumpy_walls_cut_in_steps
Code
crates/codex-client/src/draw/view/cutaway.rs, crates/codex-client/src/draw/things.rs, crates/nh-plays/src/shot/pose.rs, crates/codex-client/src/pov.rs
N-57DoneA high diagonal overview camera
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.

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

Playtests: journey-game, gallery-forms

Details for builders

Id: bars. Lexicon subjects: terrain.bars.

Design notes from NetHack

Stopped missiles print "Whang!", "Whap!", "Flapp!", "Clink!" or "Clonk!" by weight and material. Acid dissolves them; rust monsters eat through them. Tile 17 (other.txt): upright cyan rods.

Backlog rows

N-57DoneA high diagonal overview camera