A little project
Thanks to spending a few hours first watching Jay-Z at Glastonbury and then the 5-set epic that was the Murray-Gasquet match at Wimbledon today, I have found myself sat in front of the laptop hacking away at a little project that came to mind late last week.
I’m sure it has been done many time before, but as I’ve said before, reinventing the wheel can be quite fun sometimes.
So, for no reason in particular, I present to you JavaScript Tetris. Enjoy.
Tags: games, javascript, tetris

June 30th, 2008 at 10:51 pm
LOL…. don’t try to play this when you’ve got “search for text when I start typing” selected in Firefox Advanced Options :^)
June 30th, 2008 at 11:09 pm
Gah. 6225.
So the issues are:
- no visibility of next shape
- the key input isn’t responsive enough so I can’t tuck a shape into / under another one at the last minute. Not your fault, I’m sure.
July 1st, 2008 at 7:50 am
Nice work, Nick!!! Not much code, either. I’m impressed
July 1st, 2008 at 8:11 am
Tsh some people are never happy Andy!
This is great, you’ve done it so quickly too. What did you think of Jay-Z? I loved the opening he did, coming on doing Wonderwall gave me a massive smile.
July 1st, 2008 at 8:15 am
Thanks guys.
@andy - I decided to save the next shape preview for version 2… whenever that happens.
@dave - it could be smaller, I just got a bit lazy towards the end
@darren - Jay-Z was great. Wonderwall is a great start - albeit without his mike turned on.
July 1st, 2008 at 9:59 am
Hiya,
Great fun. Would it be possible to make ‘up’ drop the piece straight down to the bottom of the screen. I’m not sure if this was in original tetris, but it does seem to be in the newer versions.
July 1st, 2008 at 10:51 am
@noj - added to the list, thanks.
July 2nd, 2008 at 10:28 pm
This is really good.
While we’re adding feature requests.. isn’t the scoring in Tetris (and Tetris-like games) supposed to favour getting multiple lines at once?
July 2nd, 2008 at 11:13 pm
@roo - I got as far as giving different values to the pieces for landing them (no idea if the relative scores tally with what the real game does), but left the scores for completing lines as a simple multiple, rather than exponential.
July 7th, 2008 at 9:51 pm
[...] done tetris last week, I got a number of suggestions for improvements in the comments. Whilst I don’t [...]