文件名称:Terics
介绍说明--下载内容均来自于网络,请自行研究使用
本俄罗斯方块全部用绘图函数实现方块的绘制,没有一点资源,因此源代码很小巧,整个程序编译链接好,也就10K多吧。非常小巧的俄罗斯方块。
设计思想:
1、将游戏区域划分为18行*10列的棋盘,设立一个布尔型的二维数组变量,以表示棋盘上各个地方是否有方块。
2、用4个顶点代表各种不同形状的方块,一旦方块在游戏区域中,就把对应的布尔型二维数组变量置为真,表示该方格已经有方块了。
3、如上做方便方块移动是否会碰撞的判断。
4、代码已经修正了一个小BUG。
5、压缩包中的文件是未经修改的源代码,此处的代码为最新。
6、方向键上为改变形状,下为直接落到底部。p键为暂停(或者Pause键)-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)
设计思想:
1、将游戏区域划分为18行*10列的棋盘,设立一个布尔型的二维数组变量,以表示棋盘上各个地方是否有方块。
2、用4个顶点代表各种不同形状的方块,一旦方块在游戏区域中,就把对应的布尔型二维数组变量置为真,表示该方格已经有方块了。
3、如上做方便方块移动是否会碰撞的判断。
4、代码已经修正了一个小BUG。
5、压缩包中的文件是未经修改的源代码,此处的代码为最新。
6、方向键上为改变形状,下为直接落到底部。p键为暂停(或者Pause键)-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)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Terics.cpp