Version 1.0 Released June 9, 2004

CSC471-01 Spring 2004 - Professor Zoe J. Wood
California Polytechnic State University San Luis Obispo

[ Download Here ]


Program Description:

This 3D Tetris game is based upon the original 2D Tetris game. Pieces fall down a grid, and the object is to clear lines so that the stacked up pieces do not reach the top. The pieces move and rotate in a 3 dimensional world as opposed to a 2 dimensional world. The grid borders are wireframe and the pieces are solid blocks. For easier playability, the camera is also movable. It can rotate around the grid as well as move up and down to let the player see what's happening in the grid. The pieces also cast a glowing shadow as they are falling to help visualize where it will land once it reaches the bottom or hits another piece already in place. There are sound effects for game start, piece movement, piece rotation, clearing lines, and game over. The game also features a HUD (Heads Up Display) which shows statistics of how many of each piece has dropped as well as current score, next block to fall, lines made, current level, and music theme (Note: music has not been implemented in this release).

User's Guide:

When the program is first run, a welcome screen is displayed which shows all of the controls for the game. Pressing any key from this screen will start the game. Once the game is started, the grid and HUD will be displayed on the screen and a piece will begin falling from the center of the grid. Here are the controls for the game:

If the game is over, a sound plays and no more pieces will fall in the grid. The game must be closed at this point.

Screenshots:


The game has just been started.


A few pieces have been placed at the bottom of the grid.


The camera has been rotated and moved down for a better view of the pieces.


Viewing the grid in texture viewing mode.


Close-up showing how the glowing shadow is displayed on the top of pieces that have been set in place.


Lots o' blocks.


The pause screen.


References:

GLUT Reference
Playing Sound in OpenGL
Angel, E. OpenGl: A Primer. Boston: Addison-Wesley, 2002
OpenGL.org
GameDev.net