首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > first part of the init () method to load the game all the necessary resources, i...

first part of the init () method to load the game all the necessary resources, i...

  • 资源大小:349.25 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Windows开发 java

资 源 简 介

 ? 部分内容   首先我们在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

文 件 列 表

java游戏
Java游戏编程初步 Java 软件 天极Ysky.htm
Java游编程初步 Java 软件 天极Yesky.htm
Java游戏编程初 Java 软件 天极Yesky.htm
Java游戏编程初步 Java 软件 天极esky.htm
Java游戏编程初步 Java 软件 天极Yesky.htm
Java游戏编程初步 Java 软件 天极Yesk-y.htm
Java游戏程初步 Java 软件 天极Yesky.htm
Java游戏程初步 Java 软件 天极Yesky.files
software04-120111.jpg
Java游戏程初步 Java 软件 天极Yesky.files
Java游戏编程初步 Java 软件 天极Ysky.files
software04-120111.jpg
Java游戏编程初步 Java 软件 天极Ysky.files
Java游戏编程初步 Java 软件 天极Yesk-y.files
software04-120111.jpg
Java游戏编程初步 Java 软件 天极Yesk-y.files
Java游戏编程初步 Java 软件 天极Yesky.files
software04-120111.jpg
Java游戏编程初步 Java 软件 天极Yesky.files
Java游戏编程初步 Java 软件 天极esky.files
software04-120111.jpg
Java游戏编程初步 Java 软件 天极esky.files
Java游戏编程初 Java 软件 天极Yesky.files
software04-120111.jpg
Java游戏编程初 Java 软件 天极Yesky.files
Java游编程初步 Java 软件 天极Yesky.files
software04-120111.jpg
Java游编程初步 Java 软件 天极Yesky.files
www.pudn.com.txt
VIP VIP
0.258943s