loading…

Ersatz, rebuilt from the executable

Limp Ninja's Ersatz (party version, 2008) is a 1280×720 SDL + OpenGL 2.0 demo, schuifkaas.exe, with FMOD Ex playing an Ogg Vorbis song. Every scene above is a port of the exe's own drawing code to WebGL 2: the release's GLSL shaders, images and .raw models are used as they ship, the fixed-function OpenGL the exe relies on is emulated, and the random numbers come from a copy of the MSVC rand() called in the same order as the exe's constructors. Time is the song position, as the exe reads it from FMOD.

Keys: space play/pause · ←→ seek 5 s (with shift: one frame) · R restart · F full screen · N native 1280×720. URL options: ?t=52.1 start time, &freeze start paused without the overlay.

The running order

One function, sub_406950(t), picks the scenes each frame. Some ranges overlap; both scenes are drawn then.

SceneFromToDraw function