package com.tarrena.shoot;
import java.util.Collection;
import java.util.Random;
import java.util.concurrent.CopyOnWriteArrayList;
public class AirPlane extends FlyingObject implements Enemy{
private int speed=1;
public int getScore(){
return 5;//´òµôÒ»¸öµÐ»úµÄ5·Ö£»
}
public AirPlane(){
image=ShootGame.airplane;
width=image.getWidth();
height=image.getHeight();
Random rand=new Random();
x=rand.nextInt(ShootGame.WIDTH-this.width);
y=-this.height;
}
@Override
public void step() {
// Random rand=new Random();
// int n=random
y+=speed;
}
public Bullet shoot(){
int xStep = this.width/4;
Bullet bullets=new Bullet(this.x+2*xStep,this.y+30);
return bullets;
}
}
最近下载更多
最近浏览更多
枝与蔓 LV1
6月3日
微信网友_7123494434885632
2024年8月14日
暂无贡献等级
12345678ajkdakjd LV1
2024年6月26日
以沫煊
2024年6月22日
暂无贡献等级
鬼屋报道 LV3
2024年6月1日
2656362504
2023年12月12日
暂无贡献等级
jkjfdgbkl LV2
2023年11月1日
tyiyiyuiyuihui LV3
2023年10月11日
2017143155 LV12
2023年6月26日
1111123ah
2023年6月6日
暂无贡献等级

