Posts Tagged ‘Mario’
Super Mario online : In Javascript!
Written by fx on April 9, 2008 – 9:44 amnihilogic has published a free, online Super Mario clone (1 level); only its 14kb in size and written completely in javascript! On his blog, he talks about some of the goals of the script and how it was made –
Here’s an experiment in keepings things small and confined to one Javascript file. 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.
We also have MIDI music embedded as base64-encoded data: URI’s. No music for IE, though, and it seems all the other browsers each have different, minor problems with it, but it sort of works.
If all you’re interested in is hitting up the game then here you go (note that music only works in non-IE browsers) –
Regular version: no music or with music
Double size: no music or with music
Tags: Games, JavaScript, Mario
Posted in Gaming, Web | 2 Comments »
