This is a demo of a simple program written in Rust using the SDL2 library and compiled to WebAssembly using Emscripten. The game loop is implemented directly in Rust and uses Emscripten's Asyncify feature, as well as hooks to
This demo uses all four SDL2 extensions; Image, Mixer, TTF, and GFX.