文件名称:russianblocks
介绍说明--下载内容均来自于网络,请自行研究使用
俄罗斯方块小游戏的Java源代码,俄罗斯方块的Java 实现,里面包括控制面板类、方格类、游戏控制主类等,方格类是组成块的基本元素,用自己的颜色来表示块的外观,俄罗斯方块游戏控制面板类,继承自JPanel.上边安放预显窗口、等级、得分、控制按钮,主要用来控制游戏进程。
游戏主类,继承自Jfr a me类,负责游戏的全局控制,内含:
1, 一个GameCanvas画布类的实例引用,
2, 一个保存当前活动块(ErsBlock)实例的引用,
3, 一个保存当前控制面板(ControlPanel)实例的引用
俄罗斯方块控制面板类的构造函数:
@param game ErsBlocksGame, ErsBoxesGame类的一个实例引用,方便直接控制ErsBoxesGame类的行为。让用户修改游戏难度等级。
@param level 修改后的游戏难度等级,当用户消灭一行方块后,重新计算TipPanel里的boxes[][]里的小框的大校-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 Jfr a me 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
游戏主类,继承自Jfr a me类,负责游戏的全局控制,内含:
1, 一个GameCanvas画布类的实例引用,
2, 一个保存当前活动块(ErsBlock)实例的引用,
3, 一个保存当前控制面板(ControlPanel)实例的引用
俄罗斯方块控制面板类的构造函数:
@param game ErsBlocksGame, ErsBoxesGame类的一个实例引用,方便直接控制ErsBoxesGame类的行为。让用户修改游戏难度等级。
@param level 修改后的游戏难度等级,当用户消灭一行方块后,重新计算TipPanel里的boxes[][]里的小框的大校-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 Jfr a me 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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
俄罗斯方块java源代码\RussianBlocks\ErsBlocks.jar
....................\.............\src\src\ControlPanel.java
....................\.............\...\...\ErsBlock.java
....................\.............\...\...\ErsBlocksGame.java
....................\.............\...\...\ErsBox.java
....................\.............\...\...\GameCanvas.java
....................\.............\...\src
....................\.............\src
....................\RussianBlocks
俄罗斯方块java源代码