Description: Tetris game for Java source code , Tetris Java implementation , which includes control panel type, square type, the main game control , etc., are the basic elements checkered class blocks , with their own color to represent the appearance of the block Tetris game control panel class inherits from JPanel. remarkable window on top of the pre- placement , grade, score , control buttons , is mainly used to control the game process.
The main game class inherits from JFrame class , is responsible for the overall control of the game , containing :
1 , a reference to a class instance GameCanvas canvas ,
2 , a reference to save the currently active block (ErsBlock) instance ,
3 , a save the current control panel (ControlPanel) cited instances
Tetris control panel class constructor :
@ param game ErsBlocksGame, an instance of the class reference ErsBoxesGame facilitate direct control ErsBoxesGame kind of behavior . Allows users to modify the game difficulty level .
@ param level the mod
To Search:
File list (Check if you may need any files):
俄罗斯方块java源代码\RussianBlocks\ErsBlocks.jar
....................\.............\src\src\ControlPanel.java
....................\.............\...\...\ErsBlock.java
....................\.............\...\...\ErsBlocksGame.java
....................\.............\...\...\ErsBox.java
....................\.............\...\...\GameCanvas.java
....................\.............\...\src
....................\.............\src
....................\RussianBlocks
俄罗斯方块java源代码