Summary—Rendered in real time on a colour terminal and on a Commodore Plus/4 — and a taxi game inside it.
ASCITTY is a city built entirely out of typeable characters and raytraced in real time, in a colour terminal and on a Commodore Plus/4, with a taxi game inside it. Rays are cast from the camera every frame and walk the grid front to back; nearby things are larger and brighter, distant ones fade. There are no 3D models, no textures, no shaders and no artwork: streets, lots, six building archetypes, suburbs, farmland and a southern coast all come from one seed, and the 128 shapes it draws with are generated by a function.
make run builds it with Rust alone (the workspace has no dependencies) and starts playing. There is no menu: the cab takes fares on its own until any key is touched, and then the player is driving; \ hands it back. The attract mode and the game are the same program, because the autopilot and the keyboard give the car the same three controls. A shift starts with sixty seconds on the clock, and time comes only from working: coins, pickups and drop-offs. Petrol costs a dollar a second, so a quick fare pays and a slow one does not. Past zero the clock runs into overtime and the takings into the red rather than ending the run.
The same world can be walked at eye height or flown over in a helicopter, and g switches block elements for plain 7-bit ASCII, the mode the name is about. The frame is the size of the window, and the picture is sampled at whatever size that is, from 64×20 to a full terminal. The sky turns through twelve phases. The draw distance is set live from the next block to the whole map, and the far end of it dissolves through an ordered dither rather than popping in.
The Plus/4 is the constraint the whole design answers to: fixed point throughout, fixed-size pools, no allocation per frame. A bake step runs the same Rust core and writes the character set, the trigonometry tables and the city into C headers for cc65, so the 1984 machine draws the same city as the terminal, as a 40×25 screen at about 1.3 frames a second. The program draws its own screenshots and GIFs and records asciinema casts, and make check passes only when the tests pass and both targets actually render.
Highlights
- Height-field raycaster that keeps walking past the first hit, so towers show over nearer roofs
- Starts in attract mode: the cab takes fares until you touch a key
- A shift on the clock: fares, coins, petrol, combos and overtime
- Drive, walk or fly; block elements or plain 7-bit ASCII
- One Rust core, zero dependencies; baked into C for the Commodore Plus/4
- Procedural font: 128 glyphs from one function, installed as the Plus/4's character set
At a Glance
| Language | Rust |
|---|---|
| Platform | Colour terminals; Commodore Plus/4 |
| Version | 0.9.0 |
| License | MIT |
| Source | github.com/vonglurt/ascitty |
Pictures

Fig. 1. A night city skyline drawn entirely in coloured text characters

Fig. 2. A fare delivered: the shift clock, the takings and FARE PAID on the status line.

Fig. 3. The chase camera: the cab is drawn by a function, roof sign and all.

Fig. 4. The same street in 7-bit ASCII, the mode the name is about.

Fig. 5. One street under four of the sky's twelve phases.

Fig. 6. The same moment at 64×20 and at 200×56: the picture is sampled at the window's size.

Fig. 7. The Plus/4 build booted in VICE, walking itself through the city.

Fig. 8. Down at street level

Fig. 9. Sunset over the city