jquery-tetris

Plugin Source: jquery.tetris.js (7.32kb)


Description
jQuery Tetris

Left & Right Arrows - Move

Down Arrow - Move Down

Space - Drop

Z - Rotate CCW

X - Rotate CW



Note:This is the basic Tetris written in Javascript and jQuery. The gameplay element is missing, e.g. there are no levels, the game doesn't end when the shapes fill up the 'glass'. This "game" was programmed as an example of what's possible with JavaScript-based framework jQuery, just for fun. You can modify the code and actually make a game out of this.

Known bugs and to-do's
1. horizontal rows are not cleared (missing gameplay) 2. no level change, the shapes just fill up the space and continue regenerating.
3. no collision detection on shape rotation, only movement.