Play · The showcase game
Raycaster
A Doom-style maze written in Renyi, compiled in your browser by the same checker and emitter as the binary’s and run by the VM built for WebAssembly: textured walls, a demon that hunts you, a shotgun, the status bar and the sounds, with the art of Freedoom. Every frame is a pure function of the state and the keys held: the program hands it to the page through screen.present and suspends, the page draws the shapes and resumes the program with the input.
Space or F fires, and starts the game from its title screen. W and S or the arrows move, A and D turn, Escape or Q quits. Open a door by walking into it, shoot what moves, find the exit.
The game is the twelve modules of showcase/raycaster, about two thousand lines of Renyi, run by the interpreter of the toolchain’s module; the same program plays at the terminal under renyi run, where the frames are drawn as text. The images and the sounds are Freedoom’s, under its BSD license. Nothing leaves the page.