
Creates a shape from the build in shapes at random.

M_pStockShapes array holds the shape definitions.
#Falling blocks 2 update
All you have to do is add the shape to the array and update the array information. It is easy to add your own shapes in this game. If you set the game to crazy mode, you will get weird shapes. Under the level menu, you can select the game speed. Game is over when a shape hits the bottom and some of the blocks are above the grey line. When a shape hits the bottom, it is added to the Floored Block list and a new Next shape is created.įor each line of blocks removed, 10* NumberOfLinesRemoved* NumberOfLinesRemoved * GameSpeed points are given. One is the shape currently falling and the other is the next shape. The game creates two shapes when the game starts. You will have to adjust the project setting to reflect your DirectX SDK paths. To run the game, DirectX 7 is all that is required.

It should work fine with DirectX 7 but I have not tried it. I developed this game using DirectX 8 SDK. The classes CDisplay and CSurface are created by Microsoft and are shipped along with the DirectX SDK. The project consists of the following classes:
#Falling blocks 2 code
I have sprinkled comments all over the code so it should help you with understanding the code. This code should help you create small games using DirectX.
#Falling blocks 2 plus
Once you fill a row, it will disappear and you'll get points, plus more free space to place more shapes and eliminate more rows. To do so, there are controls on the screen that you can use to move and rotate the shapes. All you have to do is place the shapes that fall from the sky, trying to fill up rows so the blocks disappear. Playing Brick Classic Falling Blocks is very simple since the gameplay isn't really that complicated.

If you like this type of game and you want to play it whenever and wherever you want, then this is the ideal application for you. Brick Classic Falling Blocks is an application that you can use to enjoy the fun of Tetris on your smartphone.
