[jQuery] jQuery Tetris
[jQuery] jQuery Tetris
Hi all,
I saw what Dustin Diaz did with YUI (<a href="http://www.dustindiaz.com/yui-tetris/">http://www.dustindiaz.com/yui-tetris/</a>) to build a Tetris from scratch and wondered how it could be done with jQuery.
So, I began to code... and here it is: <a href="http://fmarcia.info/jquery/tetris/tetris.html">http://fmarcia.info/jquery/tetris/tetris.html</a>
Unpacked code here: <a href="http://fmarcia.info/jquery/tetris/tetris.js">
http://fmarcia.info/jquery/tetris/tetris.js</a>
About the size (once minified - means no space, no tab, no crlf, no comment), you know the winner?
- jQuery version: 5,832 bytes
- YUI version: 29,496 bytes
(to be fair, it's not the same algorithm ;-)
Thanks John, thanks Dustin.
Franck.
PS: tested with FF, IE6 and IE7b2 on WinXP
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/