To begin the logical layer, we must now answer the question, "How do you store pieces on the board?" As a class, we started by adding one point at a time to the board and then manipulating the four points for the movement of the pieces. This way, only the graphical layer had to be changed when the program was transferred to XNA. Of course, this will not happen as the class has moved to a different program, but to help facilitate this I wrote this program with the logical and graphical aspects separate. When my programming class initially chose falling blocks, one of the goals was to move the program to XNA so the game could be transferred to the XBOX 360. The last question that can really be answered right now is the inter-mingling of the logical and graphical aspects of the program. For this program, I use the Collection(Of type) class in the namespace.
![falling blocks game falling blocks game](https://i.etsystatic.com/21799898/r/il/6ffe79/2167751084/il_794xN.2167751084_2gw5.jpg)
or for a more maneuverable approach, a collection. For storing pieces, I can only think of one way to store everything. For example, the official dimension of a falling blocks board is 10x20. A few of the questions can be answered with simple Google searches. This is just a sampling of all the questions that must be asked before you can start the falling blocks making process.
![falling blocks game falling blocks game](https://www.codester.com/static/uploads/items/000/020/20919/preview/003.jpg)
This tutorial will guide you through the creation of this program from start to finish, explaining every detail possible. The result is what you see before you: a basic two-player falling blocks game that encompasses all the basic functionality of the classic. However, I could not just let this great program go without a fight. There were many examples of the game, but none were open source or explained how the program could be built.
Falling blocks game code#
After spending quite a few class hours looking for code samples and brainstorming aspects of the program, the task was deemed too difficult for the class as a whole. I first started this program last month when my Advanced Visual Basic programming course decided to re-create this classic. The beloved game of falling blocks was once a very popular game, but now it has been overshadowed by a never-ending line of games that just keep coming.
Falling blocks game download#