The Java Tetris is also called the Tetris game in its simplified form. It’s very easy and simple to play. All you have to do is to match all blocks of the same colors forming a single or multiple lines as the blocks go down. You just have to use the arrow keys in dropping the blocks. The Java Tetris is written in Java programs, which means that the game is truly cross platform as it even runs on Java applets on any website. With the enjoyable feeling that Java Tetris brings, you can’t really help yourself out from stopping playing the game. So, if you’re a Java Tetris addicted fan, you may need a cross platform clone that you may use for a more powerful and friendlier clone.
The Tetris game was created with the use of Java programming language. This is the reason by Java Tetris was called in that way. With the help of GUI or other similar Swing components, there is another game created and derived from the Java Tetris, which is called the Tetris bean. Let’s discuss further on how the Java Tetris Bean was constructed and implemented.
The Java Tetris Bean game has several components that are designated as the Java objects. These components include the game controlling the pieces on the board and managing the scores, the Tetris board holding the pieces and the Tetris pieces. The Tetris pieces also have key elements that include every piece can either be in T, Z, I, O, S, J, or L shapes, every piece may have the rotation factor of either 4, 2 or 0, every block in the piece may have an x & y coordinates within the Tetris board, and every piece is made up of four blocks exactly.
There are several things done with a Java Tetris Bean game. First is that it can connect two instances where it can create a game of a player versus another player. Second is that the Java Tetris Bean game can be incorporated into an applet that creates a Tetris game that is browser compatible. The rotation system of the Java Tetris Bean game is easier when it comes to the calculation of the rotation of the pieces with just the use of simple matrix manipulation. By applying three rotations of clockwise, you can also rotate a single piece of Tetris into 90 degrees counterclockwise. However, not all Tetris pieces have the same quantity of rotation factors as there are some checks that are needed to be implemented with the rotation methods that compensate these.
|