jQuery version of Tetris

Posted by Dan on May 2, 2007 @ 3:33 PM

I've been meaning to blogged about this for a couple of weeks and just haven't gotten around to it, so I thought I'd do it now so I can get rid of the e-mail in my inbox. :)

Here's a pretty cool jQuery implementation of Tetris. Pretty neat to seem something totally recreational done with jQuery. I've been thinking about just trying to put together some small, cool, mostly useless examples using jQuery just to show off some of the things you can do with a 19k JavaScript library. :)

Categories: jQuery, JavaScript

6 Comments

  • Thanks, Dan!

    I just wasted 30 minutes reliving my childhood when I should have been writing a contract!

    Love that jQuery tho...
  • Yup... 30 minutes... gone... Sweet stuff though, been getting into jQuery and it's awesome. Maybe add in a high score board? See if anybody wants to beat my 50 lines. Nah, you've already got the point through.
  • Great stuff Dan! But only works in Firefox. Doesn't work with IE8 or Chrome.
    Any suggestions? I have tried changing Key Codes but still no response in these two browsers.
  • Ok.. working now. Apparently, some changes in css prevented IE to recognize key codes.
  • Sorry for posting again.. can't seem to work arrow keys in IE or Chrome :(
  • @Sirwani:

    I didn't write the code, but it is from 2007, so it's not surprising it may need some tweaking. Good luck with your project!

Add Comment

Leave this field empty