boulders

A gray ` that is only ever a boulder. You push it, and Sokoban is made of them.

Terminal
boulders in Codex, first person
Codex: first person

Builtneeds review3 changes builtSeen on every levelLast touched December 2, 2026: a change of its own was written or changed. Commit 4c77e6c98.

In the terminal

Gray, in the boulder symbol ('`' by default; the player's 'boulder' option otherwise). A boulder hides any pile under it: the square shows the boulder with no pile mark unless another boulder lies under it. Pushed one square per step when nothing blocks it; in Sokoban only orthogonally. Giants pick them up and throw them. Broken by force bolt, striking or digging: 'The boulder falls apart.', leaving rocks.

Quotes from NetHack

Twice I got it nearly there, and twice the weight bore it up again; but when I flung myself on it the third time, I heard in my ears the sea-sound of Poseidon.
dat/data.base: boulder, The King Must Die, by Mary Renault
3 more quotes
/* boulder hides pile except when on top of another boulder;
include/display.h:795
You("try to move %s, but in vain.", what);
src/hack.c:256
: (ttyp == HOLE) ? "plugs a hole" : "fills a pit");
src/do.c:247

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

Fountains, altars and boulders drawn as carved stone made ahead of time, finer than the game builds.

Built3D form

Based on the real thing: An altar is a hewn stone slab overhanging a narrower block on a low step worn hollow by feet, its arrises chipped and rubbed round, and a boulder is a rounded rock with broad broken faces, chips and cracks, flattened where it rests, both matte and darker in their hollows.

Details

The authored kit (N-765): forms made offline by the tool codex-kit and read by nh-scene beside the procedural ones (nh_scene::kit). A piece is a sculpt written as a distance field, meshed (surface nets, its vertices pulled onto the surface), brought to a budget of triangles where the form allows it (quadric error, each step folding a vertex into a neighbor so every vertex stays on the surface), and baked: how open each vertex is to the light (a crevice, the foot on the floor, the underside of the slab's overhang darker) and how sharp its edge is (an arris lighter, a hollow darker) in its vertex color, which the material's color is multiplied by, so the stone stays the game's stone. The tool also takes a sculptor's glTF through the same bake. The files are compiled into the game (crates/nh-scene/kit/: altar.kit 119 KB, 7000 triangles, fresh and worn on one topology; four boulders of 46 KB, 4000 triangles each). With dungeon.authored_altar on (as by default): an altar is the DevTeam's tiles 33 to 37 (other.txt) made stone, an overhanging slab with its top where the procedural slab's is, a narrower block and a low step as wide as the slab, in its alignment's stone with the red marks on its top as before; its height knob stretches the block and keeps the slab's thickness, and the wear knob blends the fresh bake toward the worn one (edges two and a half centimeters round, chips softened, the step's hollows deeper at 2). A boulder is tile 477 (objects.txt) made stone, in the edge's boulder's frame (its flats at BOULDER_FLATS, its round side within the edge's lump), so it stands, rolls, lands and leaves the squeeze as the edge's stone does, one of four by its lump; the tile's nod: its fresh-broken faces a little paler and warmer (the tile's C flecks) and its cracks darker and browner (its J). The fountain (the director, 2026-12-02: "really stretch ourselves on something complex to set a gold standard for authoring"), from tile 41 (other.txt: a round basin of blue-gray stone with pale molded bands, a white column with water arcing from its top): a basin turned and carved as a mason would, a molded foot sunk a little in the floor, a rounded band, a body of sixteen gadroons, a thick rolled lip with a few soft knocks, hollowed to a bowl under the water; and a column, a baluster with rings carrying a shallow tazza with a lobed underside and a knob in its middle where the jet rises. Both are made to the usual fountain (dungeon.basin_height 0.25, the column 0.5 over the water): the water's disc ends in the basin's stone all the way round (its bulge with the caves' field set to nothing, since the carved stone is round), the bowl's water ends in the bowl's stone, the jet rises from the knob and the overflow falls clear of the baluster into the basin; a fountain set to other heights keeps the game's forms. The bake weathers them: wet and dark just over the water, a pale line of lime at the water line, green-dark under it, the bowl dark inside and streaked pale with lime under its rim, the moldings a little paler and the lobed body a little darker, as the tile's bands. Each piece has its switch (N-5720): dungeon.authored_fountain and dungeon.authored_altar on, dungeon.authored_boulders off until the boulder's material lets its weathered skin show (N-5725); since its third round the boulder is low and broad with big broken faces on its flanks, a few on its crown, round-bottomed cracks and grime low. Off: that piece as the game builds it, bit for bit.

Id
codex.authored_forms
Exact state
Built
Playtests
gallery-authored-kit
Settings
dungeon.authored_fountain, dungeon.authored_altar, dungeon.authored_boulders
Code
crates/codex-kit/src/lib.rs, crates/codex-kit/src/pieces.rs, crates/nh-scene/src/kit.rs, crates/nh-scene/src/model.rs, crates/nh-scene/src/things/altar.rs, crates/nh-knobs/src/dungeon/authored_forms.rs, crates/nh-scene/src/kit_tests.rs

A boulder is a big lumpy stone, flattened where it rests, lit by the room like the walls.

Built3D form

Based on the real thing: A boulder is a rounded lump of rock as tall as a man and nearly as wide, rough, matte and heavy.

Details

A boulder is a big lumpy stone (D-18): a bumped sphere shaded as a rock, its lumps catching the light and shade with no facet showing, flattened where it rests, a little taller than wide (0.94 by 1.12), turned and shaped (four variants) by its square, in rough stone warmed a little toward the brown of the DevTeam's boulder tile (objects.txt, tile 477: orange K and brown J), a little less rough than the walls, so the torch close by leaves a faint sheen. It is drawn in the walls' stone material and lit as a thing standing in a room, like an altar (N-23, N-2310): across a lit room it takes the room's light as the walls around it do, and with light.room_light_on_things at 0 it goes back to the standard material with the rest of them. Worn flat on its top as well as its foot, a smaller face; a pushed boulder turns half over and comes to rest on its other flat, never on its round side or a corner (N-720, codex.boulder_push). Keyed on the object class (Rock), so the player's own boulder symbol changes nothing. Statues, also of that class, have their own glyphs and stay letters.

Id
codex.boulder
Exact state
Built
Playtests
gallery-forms, gallery-branches, boulder-push
Code
crates/nh-scene/src/build/occupant.rs, crates/codex-client/src/geometry.rs, crates/codex-client/src/draw/world.rs, crates/nh-scene/src/surface.rs, crates/nh-scene/src/model.rs, crates/nh-plays/src/picture/stuff.rs, crates/nh-plays/src/picture/squares.rs, crates/codex-client/src/draw/things.rs
V-13DoneBoulders read as heavy stone.

A basin, a door or a boulder darkens where it meets the floor, with the floor at its foot.

Builtneeds reviewCamera or view

Details

N-319, the rest of the director's 'contact shadow everywhere' (N-317, 2026-11-03). A fountain's basin, a door's leaf and its handle, a boulder and a tool's form are the world's surfaces on the standard material, and Bevy's contact shadow closes in only their faint light, so their own sides stood bright beside the floor that darkened at their foot. They are drawn in the grounded material (draw/grounded.rs, assets/shaders/grounded.wesl): the same standard material, its lamplight closed in by the contact shadow as the walls' and floors' stone has it (stone.wesl): the stone's share, contact_shadow_in_lamplight, times contact_shadow_on_forms (1), above the stone's contact_shadow_threshold, so their open faces keep their light and only the joins darken. A form's side meets the floor at a shallower occlusion than the stone's corners (0.5 to 0.7 at a basin's foot, measured on the GTX 1660), so on a form the shadow is full where the occlusion reaches contact_shadow_on_forms_depth (0.6) of where it begins, on an S-curve that starts flat: at the stone's own curve the foot moved by two or three levels in eight bits and could not be seen. Only at the foot of a tall form (N-694, the director, 2026-11-28: "Only the bottom of tall things"): the shadow fades out going up the form's side, full to half of contact_shadow_on_forms_reaches_up (0.35 squares over the floor, about a sixth of a door) and none past it, and the faint light Bevy closes in by itself is lifted on the same curve, so an open door's leaf, one of the things the eye should find first, is lit above its foot as with no contact shadow at all (gallery-shop's first person, measured against the shadow off: all the brightness it had lost comes back from chest height up, half of it just over the foot); a basin or a boulder is short enough to be all foot and is grounded as before. Their own glow is never closed in. An altar and a thing with lore are already the stone's (N-2310) and take it there; with light.room_light_on_things 0 they are drawn on the standard material and take it here. A statue stays a letter of stone on the standard material (its letter is played on by a throw and a melt). With the contact shadow off (low quality) or the knob at 0 every form keeps the standard material, as before. Nothing new is inferred: it reads only the depth and normals of what is drawn.

Id
codex.grounded_forms
Exact state
Built, not reviewed
Playtests
gallery-furniture-shadow
Settings
light.contact_shadow_on_forms, light.contact_shadow_on_forms_depth, light.contact_shadow_on_forms_reaches_up
Code
crates/codex-client/src/draw/grounded.rs, assets/shaders/grounded.wesl, crates/codex-client/src/draw/things.rs
Applies to everything on the map (2)
  • Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
  • 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.

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

Playtests: gallery-authored-kit, gallery-forms, gallery-branches, boulder-push, gallery-furniture-shadow

Planned and proposed

Planned A player's own forms for the hero, objects and features, not only monsters.

Idea A pushed boulder tips into the pit and settles until its top is level with the floor.

Details for builders

Id: boulder. Lexicon subjects: object.rock.item.boulder.

Design notes from NetHack

'With great effort you move the boulder.', 'You try to move the boulder, but in vain.', 'The boulder fills a pit.' (blind: 'You hear a CRASH! beneath you.').

Backlog rows

V-13DoneBoulders read as heavy stone.
N-353To doOwn forms for the hero, objects and features
N-650To doA boulder fills the pit