立即学习:https://edu.csdn.net/course/play/1670/26223?utm_source=blogtoedu
- Random r=new Random(1000);
- private Array<Rectangle> bulletArray =new Array<Rectangle>();//矩形数组
- private Sprite bullet1Texture;精灵
- private Sprite bullet2Texture;精灵
- private TextureAtlas atlas;纹理图
- private int bullet1W;子弹1宽度
- private int bullet1H;子弹1高度
- private int bullet2W;子弹2宽度
- private int bullet2H;子弹2高度
- private float stateTime=0f;状态时间
- private int Type=TypeBullet1;初始子弹类型
- public static final int TypeBullet1=0;子弹类型1
- ublic static final int TypeBullet2=1;子弹类型2
- private int herow;宽度
- private float stateTimeforbullet2=0f;时间
- private float stateTimedf=10f;也是时间