nihilogic: Super Mario in 14kB Javascript

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.

nihilogic: Super Mario in 14kB Javascript

!!!

Makes me think I should: a) be doing more with Canvas and b) be doing more with encoding data as strings.

Tags: , ,

Leave a Reply

I'm Reading…
Search This Site

AddThis Feed Button

Need great hosting?

Categories