Using java to write a Tetris game

It has the following functions:

  1. In the two-dimensional plane in the box with a variety ensue accumulation of wood, each fill line to eliminate a line when it reaches the top, the game is over.
  2. Rotational direction keys to control the player through the block, left, right and straight sets.
  3. Each type of box is color.
  4. In the process of the game can be played, the player is given a score, the score is then determined by the type of the block, a stack of each block, the score will be accumulated into overall score.
  5. The game has pause, start and end, rules of the game, control the game descriptions.

The effect is as follows:

Click here to download the source code and documentation

 

 

Guess you like

Origin blog.csdn.net/demongwc/article/details/84566633