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
Sure the DIVs count would drop from 27 to 23 zillions but the generation code would be more complex and thus less packer-friendly. And the rendering would remain incredibly slower than when using an image. The idea of doing the 1st level of Mario in ~8kB it is fun and all but I'd rather keep it "simple" and save some code mojo for more interesting projects. ... mmh I could keep the image as an IE & Safari fallback ( with a filename leaving no doubt about its raison d'être ), and re-generate it if the user agent supports Canvas. Everyone should be happy-ish with that solution. Right ? [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img][/url] [small]Edit: just found out that Safari do NOT support Canvas.toDataURL(). S'RSLY?! [/small] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 04-20-2008 01:03)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »