资源简介
shoot_07.zip
![](http://www.nz998.com/pic/50526.jpg)
代码片段和文件信息
package cn.tedu.shoot;
import java.awt.image.BufferedImage;
public class Airplane extends Flyingobject implements Enemy {
private int step;
static BufferedImage[] images = new BufferedImage[5];
//静态加载图片资源
static{
for(int i=0;i images[i] = loadImage(“airplane“+i+“.png“);
}
}
public Airplane() {
width = 49;
height = 36;
x = (int)(Math.random()*(World.WIDHT-width));
y = -height;
step = 2;
}
//移动行为
public void step(){
y += step;
}
//根据状态获取要画的图片对象
int deadIndex = 1;
public BufferedImage getImage(){
if(isLife()){
return images[0];
}else if(isDead()){
//返回爆炸某一时刻的图片
BufferedImage image = images[deadIndex++];
if(deadIndex == images.length){
state = REMOVE;
}
return image;
}
return null;
}
@Override
public int getScore() {
return 1;
}
//判断是否越界
public boolean outOfBounds(){
return y>=World.HEIGHT;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-04 21:25 shoot_07\
文件 302 2018-03-28 14:08 shoot_07\.classpath
文件 384 2018-04-04 09:42 shoot_07\.project
目录 0 2018-04-04 21:25 shoot_07\.settings\
文件 598 2018-03-28 14:08 shoot_07\.settings\org.eclipse.jdt.core.prefs
目录 0 2018-04-04 21:25 shoot_07\bin\
目录 0 2018-04-04 21:25 shoot_07\bin\cn\
目录 0 2018-04-04 21:25 shoot_07\bin\cn\tedu\
目录 0 2018-04-04 21:25 shoot_07\bin\cn\tedu\shoot\
文件 1697 2018-04-04 11:43 shoot_07\bin\cn\tedu\shoot\Airplane.class
文件 217 2018-04-04 09:42 shoot_07\bin\cn\tedu\shoot\Award.class
文件 1853 2018-04-04 11:45 shoot_07\bin\cn\tedu\shoot\Bee.class
文件 1706 2018-04-04 11:44 shoot_07\bin\cn\tedu\shoot\BigAirplane.class
文件 1074 2018-04-04 16:55 shoot_07\bin\cn\tedu\shoot\Bullet.class
文件 130 2018-04-04 09:42 shoot_07\bin\cn\tedu\shoot\Enemy.class
文件 2115 2018-04-04 16:56 shoot_07\bin\cn\tedu\shoot\Flyingob
文件 2601 2018-04-04 17:15 shoot_07\bin\cn\tedu\shoot\Hero.class
文件 1309 2018-04-04 11:46 shoot_07\bin\cn\tedu\shoot\Sky.class
文件 655 2018-04-04 14:48 shoot_07\bin\cn\tedu\shoot\Test.class
文件 1600 2018-04-04 17:28 shoot_07\bin\cn\tedu\shoot\World$1.class
文件 891 2018-04-04 17:28 shoot_07\bin\cn\tedu\shoot\World$2.class
文件 6441 2018-04-04 17:28 shoot_07\bin\cn\tedu\shoot\World.class
文件 3575 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\airplane0.png
文件 2619 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\airplane1.png
文件 2954 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\airplane2.png
文件 4047 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\airplane3.png
文件 1439 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\airplane4.png
文件 26709 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\background.png
文件 6405 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\bee0.png
文件 6416 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\bee1.png
文件 6428 2018-04-02 14:09 shoot_07\bin\cn\tedu\shoot\bee2.png
............此处省略58个文件信息
- 上一篇:ROST CM中文版.
- 下一篇:光立方程序详解
相关资源
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
- 联想启天M4350 BIOS升级文件
- 操作系统教程课后答案华中科技大学
评论
共有 条评论