Walkable worlds drawn entirely in text characters — a rain-lit cyberpunk city, a frontier town, the Moon and a castle town — in one HTML file.
Find a file
MiguelCarino 574d4113e6 CyberCity: a walkable ASCII cyberpunk city in one HTML file
A first-person street canyon rendered at character resolution, fullscreen,
self-contained: index.html has zero external references and is built from
src/ by `node build.js`. Never edit index.html by hand.

Renderer is voxel-space (heightmap) raycasting, not a wall grid: each screen
COLUMN marches front-to-back keeping a running silhouette row, which gives
occlusion, varying building heights, cross-streets and the slot of sky
between rooftops for free.

- src/city.js       endless deterministic heightmap; districts, lots, signs,
                    the walk, and a 192-candidate search for a start point
                    that opens inside a canyon on every seed
- src/weather_state.js  one weather director: six presets on a seeded schedule
                    with weighted transitions. Every element reads rel(), which
                    is 1.0 under the preset the build was tuned as
- src/control.js    arbitration, not replacement -- the autopilot never stops
                    running, the viewer's pose is cross-faded over it, and
                    letting go re-anchors to the nearest point on the route.
                    Keyboard, mouse-look, touch, gamepad; pitch slides the
                    horizon because at this resolution that IS pitch
- src/surfaces.js   facade/floor/sky texture, puddles, wet reflection
- src/raycast.js    the column march
- src/elements/     38 ambient elements: rain, steam, fog, lightning, stars,
                    moon, aircraft, blimps, drones, searchlights, beacons,
                    crowds with clothing archetypes, traffic, a cat, food
                    stalls, litter, props, skybridges, cables, neon, holo,
                    signals, shop spill, and the optics passes
- tools/            headless.cjs renders a frame with no browser; topng.py
                    prints it; metrics.py measures it; domshim.cjs boots the
                    BUILT page under a fake DOM; flicker-rate.cjs and
                    lightning-rate.cjs are the photosensitivity gates

Verified: deterministic (byte-identical renders across processes), 252/252
domshim checks, flicker-rate PASS under all six skies, lightning-rate PASS
on the four skies that carry storms and NOT_APPLICABLE on the two that do not.

Not yet verified in a real browser: glyph legibility, bloom appearance,
on-screen colour, frame budget, and touch/gamepad on hardware.
2026-08-16 02:20:18 -06:00
src CyberCity: a walkable ASCII cyberpunk city in one HTML file 2026-08-16 02:20:18 -06:00
tools CyberCity: a walkable ASCII cyberpunk city in one HTML file 2026-08-16 02:20:18 -06:00
.gitignore CyberCity: a walkable ASCII cyberpunk city in one HTML file 2026-08-16 02:20:18 -06:00
build.js CyberCity: a walkable ASCII cyberpunk city in one HTML file 2026-08-16 02:20:18 -06:00
CONTRACT.md CyberCity: a walkable ASCII cyberpunk city in one HTML file 2026-08-16 02:20:18 -06:00
index.html CyberCity: a walkable ASCII cyberpunk city in one HTML file 2026-08-16 02:20:18 -06:00