Krater is a small first-person shooter demo where the terrain does not stay put. Every rocket tears a hole into the rock, sticky charges blast tunnels, the drill eats through walls. Whatever has nothing left to hold on to breaks off and falls down as debris. The inspiration was the Geo-Mod terrain from Red Faction. Nothing was taken from it, the map, textures and sounds are all generated.
The engine is written from scratch in Rust with wgpu. The world is made of 25 cm voxels, each storing the distance to the nearest surface, and Surface Nets turn that into a mesh. A crater only rebuilds the chunks it touches. After that a flood fill looks for pieces that are no longer attached to anything. Those become bodies in the physics engine (rapier), tip over, roll away and come to rest.
For the retro look Krater renders at 480 x 270 internally, with unfiltered 64x64 textures, a fixed 64-color palette and Bayer dithering. The sounds come from a small generator built from noise, filters and envelopes, and they play back positionally.
There are four weapons (assault rifle, rocket launcher, sticky charge, drill) and one map: a quarry with terraces, a concrete bunker, steel girders and two mine tunnels. No enemies, no story, no menus, it is only about breaking things. On my RTX 3090 it runs at around 1700 frames per second.