Image may be NSFW.
Clik here to view.Jacob Seidelin worked on an experiment in keepings things small and confined to one Javascript file and came out with a POC of Super Mario. There are no external image files or anything, everything is rendered with Javascript using either canvas elements or old fashioned div-making tactics (for IE). The sprites are stored in custom encoded strings in a format that only allows 4 colors for each sprite but in turn only takes up around 40-60 bytes per sprite.
It is by no means a complete clone or anything, it’s not even an entire level and several key things are missing, such as mushrooms, Koopas and stuff.
Be sure to click the mouse on the game if Mario won’t move. When you die, you have to reload the page to start over. And yes, you can move left. Sorry.
Regular version: no music or with music
Double size: no music or with music
The script has been compressed to 14kb with the YUI compressor.
Here’s the uncompressed script (35kb), if anyone is interested. The structure may look a bit weird, a lot things have been moved around to get better compression.