文件名称:javagame1245

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

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

 ? 部分内容



  首先我们在init()方法中加载所有游戏必要的资源,包括声音,鼠标事件的监听、背景等相关设置。利用addBomb()方法增加bomb的数量、初始位置及初始化颜色。再利用start()启动线程。线程调用run()方法,处理炸弹下降运动down()。Repaint()会在每一个单位时间调用paint()方法不断的刷新屏幕,paint()调用Bomb.addBomb()绘制炸弹。当游戏者按下鼠标,mousePress()事件激活,判断是否点中了炸弹。如果点中addScore()自动加1分。如果没有点中炸弹,炸弹继续下降,当撞到屏幕wasHitEarth()方法激活,其内调用death()方法,减少Denfenser.life生命点,同时audio.play()处理声音的播放,用以提示游戏者。当你的生命点数小于0时”Game Over”。-first part of the init () method to load the game all the necessary resources, including the voices of the mouse wiretapping, and other relevant background set. Use addBomb () method to increase the number of bomb, the initial location and initialization color. Reuse start () activated threads. Call threads run () method to deal with bomb dropped down Movement (). Hamas () in a unit time per call to paint () method is constantly refresh the screen, paint () call Bomb.addBomb () to draw bomb. When pressed mouse game, mousePress () activation of the incident to determine whether the point of the bomb. If the point addScore () an automatic points. If there is no point bombs, continued to decline, hit the screen wasHitEarth () method is activated, Calling within their death (), to reduce Denfe
相关搜索: java
paint
java
threads
java
java
game

(系统自动生成,下载前可以参看下载内容)

下载文件列表

java游戏

........\Java游戏程初步 Java 软件 天极Yesky.files

........\...........................................\04-43.gif

........\...........................................\04-44.gif

........\...........................................\04.js

........\...........................................\10.js

........\...........................................\2004-30.gif

........\...........................................\;pl=pl-15-software-all;tp=if;sk=0;ck=0;.files

........\...........................................\;pl=pl-15-software-all;tp=if;sk=0;ck=0;.htm

........\...........................................\bellow-soft.js



........\...........................................\channel.js

........\...........................................\counter.shtml

........\...........................................\dell-notebook-scolumn.htm

........\...........................................\kong.gif

........\...........................................\newhard-040906_c_1.gif

........\...........................................\software04-120111.jpg

........\...........................................\software04-120112.jpg

........\...........................................\software04-120113.jpg

........\...........................................\souchang1.gif

........\...........................................\y-content-text-1.js

........\...........................................\y-software-develop-pip.js

........\...........................................\y-software-svbutton-1.js

........\...........................................\yesky-home-new-button-1.js

........\...........................................\yesky-software-content-column-s.js

........\...........................................\y_head0603.js

........\Java游戏程初步 Java 软件 天极Yesky.htm

........\Java游戏编程初 Java 软件 天极Yesky.files

........\...........................................\04-43.gif

........\...........................................\04-44.gif

........\...........................................\04.js

........\...........................................\10.js

........\...........................................\2004-30.gif

........\...........................................\;pl=pl-15-software-all;tp=if;sk=0;ck=0;.files

........\...........................................\;pl=pl-15-software-all;tp=if;sk=0;ck=0;.htm

........\...........................................\bellow-soft.js



........\...........................................\channel.js

........\...........................................\counter.shtml

........\...........................................\dell-notebook-scolumn.htm

........\...........................................\kong.gif

........\...........................................\newhard-040906_c_1.gif

........\...........................................\software04-120111.jpg

........\...........................................\software04-120112.jpg

........\...........................................\software04-120113.jpg

........\...........................................\souchang1.gif

........\...........................................\y-content-text-1.js

........\...........................................\y-software-develop-pip.js

........\...........................................\y-software-svbutton-1.js

........\...........................................\yesky-home-new-button-1.js

........\...........................................\yesky-software-content-column-s.js

........\...........................................\y_head0603.js

........\Java游戏编程初 Java 软件 天极Yesky.htm

........\Java游戏编程初步 Java 软件 天极esky.files

........\............................................\04-43.gif

........\............................................\04-44.gif

........\............................................\04.js

........\............................................\10.js

........\............................................\2004-30.gif



........\............................................\;pl=pl-15-software-all;tp=if;sk=0;ck=0;.files

........\...........................................

相关说明

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

相关评论

暂无评论内容.

发表评论

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

源码中国 www.ymcn.org