package com.tarrena.shoot;
import java.util.Random;
public class Bee extends FlyingObject implements Award{
	private int xSpeed=2;//Bee飞行的x左边速度;
	private int ySpeed=2;//bee飞行的y坐标的速度;
	private int awardType;//奖励类型
	private int direction;
	@Override
	public int getType() {
		return awardType;
	}
	
	public Bee(){
		image=ShootGame.bee;
		width=image.getWidth();
		height=image.getHeight();
		Random rand=new Random();
		x=rand.nextInt(ShootGame.WIDTH-this.width);
		y=-this.height;
		awardType=rand.nextInt(2);
	}
	Random rand1=new Random();
	@Override
	public void step() {
		
		direction=rand1.nextInt(2);
		if(direction==0)
			x+=xSpeed;
		else 
			x-=xSpeed;
		y+=ySpeed;
	}
}
最近下载更多
                
最近浏览更多
                
                枝与蔓     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日
            
            
                    暂无贡献等级
            
        
                
                
                