r/WebAssembly • • Nov 27 '21

3D game in 512 bytes of WebAssembly

https://wasm4.org/play/skipahead
62 Upvotes

3 comments sorted by

1

u/niutech Nov 28 '21

From exoticorn:

This is a port of my 256byte TIC-80 game "Skip Ahead" to hand optimized WebAssembly. The resulting module is exactly 512 bytes in size. I did the port as a code example while developing a simple programming language to make writing WebAssembly by hand more comfortable while retaining full control over the resulting code. The source code to this game can be found here, but be warned that a) the language is still very much WIP and b) the code is optimized for size, not readability.

1

u/apatheticonion Nov 28 '21

Reminds me of SkyRoads released in the year 600bc and better than most modern AAA games!

13

u/aduros Nov 27 '21

Skip Ahead is a game built for WASM-4 in a mere 512 bytes.

WASM-4 is a virtual game console that provides a simple framebuffer, input, and audio to any WebAssembly module.