About the project
voxelforge is a voxel engine with a playable browser world: the renderer runs on WebGL2 and WASM, and the simulation core builds natively. A voxel is the 3D counterpart of a pixel, a cubic block the whole game world is made of. WASM (WebAssembly, the format browsers use to run compiled code) lets the engine run on a web page, while the core, built as an ordinary program, can be checked without a graphics card, hence the dense test coverage.
The challenge
A voxel engine has to draw the world fast and simulate it correctly at the same time, and a bug in either is easy to miss. Logic tangled up with the renderer cannot be checked without a graphics card, so the simulation core was separated from it.