Description: All the Tetris box drawing with the drawing functions, no resources, so the source code is very small, the entire program is compiled and linked, it 10K more. Very small Tetris. Design ideas: 1, the game area is divided into 18 rows* 10 board, the establishment of a Boolean-type two-dimensional array variables to represent the chessboard box. 2, with four vertices on behalf of various shapes box Once the the Boolean box in the area of the game, put the corresponding two-dimensional array variable is set to true, indicates that the grid box. 3, as do the convenient box to move to determine whether the collision. 4, the code has been fixed a bug. 5, compress files in the package is unmodified source code, the code here for the latest. 6, the arrow keys to change the shape, straight into the bottom. p key to pause (Pause key)
To Search:
File list (Check if you may need any files):
Terics.cpp