OZONE Asylum
Forums
DHTML/Javascript
Found: Super Mario in 14kB Javascript
This page's ID:
30185
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[url]http://blog.nihilogic.dk/2008/04/super-mario-in-14kb-javascript.html[/url] [quote] 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. [/quote] It's a pretty decent effort with some room for improvement. (It might have even been possible to fit it in 20 lines by reorganizing some things ;)) [url=http://magnetiq.com/][img]http://magnetiq.com/exports/oa_sig.gif[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »