1 Star 0 Fork 0

Qiao/飞机大战

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
AirPlane.java 532 Bytes
一键复制 编辑 原始数据 按行查看 历史
李帛峭 提交于 2021-04-13 20:04 . 飞机大战
public class AirPlane extends FuPlane implements Enemy{
private int speed = 3;
private int score = 2;
public AirPlane() {
blood = 1;
img = Main.air;
width = img.getWidth();
height = img.getHeight();
x = (int) (Math.random() * Main.WIDTH - img.getWidth());
y = -img.getHeight();
}
@Override
void move() {
y += speed;
}
public int getScore(){
return score;
}
public void setScore(int score){
this.score =score;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/li-boqiao/BoQiao.git
git@gitee.com:li-boqiao/BoQiao.git
li-boqiao
BoQiao
飞机大战
master

搜索帮助