Skip to content
Raw WebAssembly demos
WebAssembly HTML Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Raw WebAssembly Demos

Quine

A little WebAssembly quine. Without a way to do output, I decided that a WebAssembly quine should export a memory object with a copy its bytes. [148 bytes]

Demo!

Doomfire

An implementation of the Doom fire effect described in Fabien Sanglard's blog, using hand-written WebAssembly. [398 bytes]

Demo!

Metaball

An implementation of the metaball effect described in Jamie Wong's blog, using hand-written WebAssembly. Unlike the implementation described there, this just updates every pixel. [452 bytes]

Demo!

Raytrace

A simple raytracer, using techniques from tinyraytracer, in hand-written WebAssembly. 4 spheres, 1 light, reflections, and shadows. [1486 bytes]

Demo!

Snake

A snake-eats-the-dots game, but with 360° rotation. Use left and right arrow keys, or tap on the left or right side of the screen to turn. [1976 bytes]

Demo!

Maze

A Wolfenstein-style 3d maze race. Each ray is tested against all walls, brute-force style. Walls, floors and ceilings are textured. Palettes are made up of 120-levels of brightness, which fade into black in the distance. [2184 bytes]

Demo!

You can’t perform that action at this time.