Renyi

Learn

Play

The toolchain compiled to WebAssembly: the showcase game played in your browser, and a playground that checks and runs what you write.

01

The game

The showcase game, a Doom-style maze of twelve modules 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, a shotgun, the status bar and the sounds, with the art of Freedoom. Every frame is a pure function of the state and the input: the program hands it to the page through screen.present and suspends, the page draws the shapes and resumes the program with the keys held and the time elapsed.

Play the game

The game’s title picture
02

The playground

Write a program, check it, run it: the diagnostics come with their fixes, as renyi check prints them. The page serves the console, the clock, random numbers, the environment and the screen; a main that needs anything else is refused before it runs, with the capability named. A program that presents frames plays on a screen under the output, and may name the game’s images and sounds.




View the source of this page