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
[b]0x0D06:[/b] Hello and welcome to the Asylum, anonymous person from Germany. I meant storing the sprites in a more basic string/array format like e.g. binary strings ( e.g.: spriteFoo = '01110101001001' ). The base128 encoding requires complex/lengthy computations to decode and use a wiiiide portion of the 256 possible ASCII characters in a chaotic order, leaving very few tokens/characters available for a packer to replace the redudant patterns of the source code. On my WIP all the sprites ( 69 in total ) are in a single .PNG file weighing ~1710 bytes. That's less than 25 bytes per sprite and no JS code required to decode them and what not. I might give a shot at storing/generating the sprites in JS as I expect people to "bitch" about me using an image when I release my version. Using an image is less geeky but it's like 2-3x more efficient than the encoding used in the 14kB Mario. OTOH the geek points lost here, will float back on the music part ;) [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_teapot.png[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 04-16-2008 13:42)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »