PDA

View Full Version : JsTetris


cagrET
08-09-2004, 02:52 AM
Hello!

JsTetris is a clone of tetris game. I've finished the first version about month ago, but today I wrote additional module - Highscores, and thought I could post it here to hear what do you guys think about it.

Play: http://gosu.pl/demo/JsTetris/Tetris.html
Download 1.1.0 version: http://prdownloads.sourceforge.net/mygosuclan/JsTetris-1.1.0.zip?download

Direct link to javascript source: http://gosu.pl/demo/JsTetris/Tetris.js
I tried to document the code well and make it easy to extend.

Garadon
08-09-2004, 06:51 AM
I think its a bit jumpy, the block defintly need to have a more floating fall.

cagrET
08-10-2004, 07:44 PM
I was considering to make it floating. An example: http://gosu.pl/tmp/tetris/alpha1/interactive.html . But I have encountered problems. What about when user tries to squeeze it between other blocks when moving left/right and it is still in 50% in move from point A (6, 7) to point B (6, 8) for example ? I don't think animation is possible. To make it less jumpy I see only one solution: make the blocks smaller, so the jumpy effect doesn't bother (gameboy for example is very small so I think that this problem doesn't exist there).

Btw. I have played it a lot and this jumpy effect doesn't disturb me even on level 11 (the highest level I am able reach at the moment). I even know a person who reached level 21 with 2,532,787 points and he didn't complain about jumpy effect ;)

I know that there is some problem with floating on Mozilla, maybe this is what you are talking about. Looks like Mozilla can't keep pace by blocks and it doesn't look to good but is still playable (I play only on Mozilla). On IE it works great. I have seen it many times that Mozilla is quite slow when comparing to IE in games that require dynamic action. It is a shame (?).

Terry
08-18-2004, 03:25 PM
Excellent work! Solid code and implementation. This is the best JS Tetris I have seen yet. You should be proud man, nice job :thumbsup:

I see what you mean about Gecko browsers and the choppy rendering on the animation. This is always true though with Moz and DHTML. Maybe it has something to do with IE being plugged into the OS.

There's only one thing I would wish for the game ... a pause functionality.

MikeFoster
08-18-2004, 08:24 PM
Very Cool!

Awesome work! Congrats! :-)