文件名称:Java

  • 所属分类:
  • JSP源码/Java
  • 资源属性:
  • [Java] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 209kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 忍*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

本作品分为3个模块

(1) 游戏主类,继承自Jfr a me类,负责游戏的全局控制。

内含

1, 一个GameCanvas画布类的实例引用,

2, 一个保存当前活动块(ErsBlock)实例的引用,

3, 一个保存当前控制面板(ControlPanel)实例的引用 *

(2) 一轮游戏过程,实现了Runnable接口

一轮游戏是一个大循环,在这个循环中,每隔100毫秒,检查游戏中的当前块是否已经到底了,如果没有, 就继续等待。如果到底了,就看有没有全填满的行,如果有就删除它,并为游戏者加分,同时随机产生一新的当前块,让它自动下落。当新产生一个块时,先检查画布最顶上的一行是否已经被占了,如果是,可以判断Game Over了。

(3)方格类,是组成块的基本元素,用自己的颜色来表示块的外观-The work is divided into three modules 

(1) the main types of games, inherited from the Jfr a me class, is responsible for overall control of the game.

 Intron

 1, a type of canvas GameCanvas examples cited,

 2, a block to preserve the current activities (ErsBlock) cited examples,

3, a preservation of the current control panel (ControlPanel) cited examples *

(2) a game process, the realization of the Runnable interface

  Round of the game is a big circle in the cycle, every 100 milliseconds, to check the current block of the game has been in the end, if not, continue to wait. If in the end, it has no full-filled look at the line, if there is to delete it, and extra points for players, a new randomly generated at the same time the current block, it automatically whereabouts. When a new block when the canvas to check whether the top line has been accounted for and, if so, can determine a Game Over.

(3) box type, is composed of the basic elements of the block, with its
(系统自动生成,下载前可以参看下载内容)

下载文件列表

俄罗斯方快

..........\bak

..........\...\untitled1

..........\...\.........\ErsBlocksGame.java~31~

..........\...\.........\ErsBlocksGame.java~32~

..........\...\.........\ErsBlocksGame.java~33~

..........\...\.........\ErsBlocksGame.java~34~

..........\...\.........\ErsBlocksGame.java~35~

..........\...\.........\ErsBlocksGame.java~36~

..........\...\.........\ErsBlocksGame.java~37~

..........\...\.........\ErsBlocksGame.java~38~

..........\...\.........\ErsBlocksGame.java~39~

..........\...\.........\ErsBlocksGame.java~40~

..........\classes

..........\.......\package cache

..........\.......\.............\untitled1.dep2

..........\.......\untitled1

..........\.......\.........\ControlPanel$1.class

..........\.......\.........\ControlPanel$2.class

..........\.......\.........\ControlPanel$3.class

..........\.......\.........\ControlPanel$4.class

..........\.......\.........\ControlPanel$5.class

..........\.......\.........\ControlPanel$6.class

..........\.......\.........\ControlPanel$7.class

..........\.......\.........\ControlPanel$ControlKeyListener.class

..........\.......\.........\ControlPanel$TipPanel.class

..........\.......\.........\ControlPanel.class

..........\.......\.........\ErsBlock.class

..........\.......\.........\ErsBlocksGame$1.class

..........\.......\.........\ErsBlocksGame$10.class

..........\.......\.........\ErsBlocksGame$11.class

..........\.......\.........\ErsBlocksGame$12.class

..........\.......\.........\ErsBlocksGame$13.class

..........\.......\.........\ErsBlocksGame$14.class

..........\.......\.........\ErsBlocksGame$2.class

..........\.......\.........\ErsBlocksGame$3.class

..........\.......\.........\ErsBlocksGame$4.class

..........\.......\.........\ErsBlocksGame$5.class

..........\.......\.........\ErsBlocksGame$6.class

..........\.......\.........\ErsBlocksGame$7.class

..........\.......\.........\ErsBlocksGame$8.class

..........\.......\.........\ErsBlocksGame$9.class

..........\.......\.........\ErsBlocksGame$Game.class

..........\.......\.........\ErsBlocksGame.class

..........\.......\.........\ErsBlocksGame_this_windowAdapter.class

..........\.......\.........\ErsBox.class

..........\.......\.........\GameCanvas.class

..........\src

..........\...\untitled1

..........\...\.........\ErsBlocksGame.java

..........\...\.........\ErsBlocksGame.java~1~

..........\...\.........\ErsBlocksGame.java~2~

..........\...\.........\ErsBlocksGame.jbx



..........\untitled1.jpx

..........\untitled1.jpx.local

..........\untitled1.jpx.local~

..........\untitled1.jpx~

..........\实训报告.doc

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org