All projects

Hyperbox

Archived

A zero-dependency 4D physics simulator and ASCII renderer, written in C.

Year
2026
Stack
  • C
  • Physics Simulation
  • ASCII Rendering
  • Terminal

A 4D physics simulator with zero dependencies, written in C. Simulation, rendering and the terminal UI all live in the codebase, so it builds and runs anywhere a C compiler does.

The renderer draws the result as ASCII art straight into a character buffer, which keeps the whole thing fast enough to stay at interactive frame rates in a plain terminal.

Working out how to project four dimensions onto a two-dimensional character grid was the interesting half of the problem.