yuliner.blogg.se

Falling blocks 2
Falling blocks 2











falling blocks 2
  1. FALLING BLOCKS 2 UPDATE
  2. FALLING BLOCKS 2 CODE

Sets the maximum number of shapes that // will be used from the array. bool SetMaxNoOfShapesAllowed( short nMac) Converts the internal SBlock to contain the actual // coordinates so that it can be added to the floored list. void Display() // Displays the shape void ConvertToSpaceCoord() bool Rotate() // Rotates based on the shape. bool MoveLeft() īool MoveDown() // Moves the shape down. bool MoveRight() // Moves the shape right. This function creates the blocks and gives it the color bool MoveTo(x1,y1) // Moves the shape to the given coordinates. 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.

falling blocks 2

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. DirectX 8.0 SDK (DirectX 7.0 SDK should also work but I have not tried it).A row filled with blocks are removed and points are given. The objective is to get continuous blocks in a row. Down arrow to move the block down faster and the center key (5) to drop the block. Use the Left arrow and the Right arrow to move the block left or right. Unlike some, I have never had any trouble with the FBW and, if it is going to be manufactured again, will probably replenish my supply.The controls for the game are simple. I make these for my own amuzement and to coincide with projects upon which I am engaged with regard to my historical research. Northwest Trade Rifles, Northwest Trade Guns and Utility Muskets. I'm retired now and the firearms I'm making are pre-1800 rifles and smoothbores.

falling blocks 2

Other than that, I have built on Navy Arms Martinis, original Martinis, Navy Arms Rolling Blocks, original Rolling Blocks, Trapdoors & Sharps. I have only one of the minature FBWs left and it is going to be made into a. With two exceptions, all my FBW single shots are made into. I just found this site and thought I'd drop by from time to time and see what was going on with the single shot rifle gang. I think I have about 5 left but they are not for sale. It is not my intention to get anyone stirred up, but I have been making up rifles on the FBW action since they first came out.













Falling blocks 2