首页>代码>java swing开发打飞机的小游戏源代码下载>/PlaneGame/src/com/leng/role/MyBull.java
/**
 * 
 */
package com.leng.role;

import java.awt.Image;

import com.leng.frame.battleGame;

/**
 * 我的灰机子弹
 *@author 黄昏的阳光
 * 2013-8-31
 */
public class MyBull extends Monster {
	   /**我的子弹弹*/
	public static Image  buImage;

	public MyBull(int x, int y, int speed) {
		super(x, y, 10, 10, speed);
	}

	@Override
	public void move() {
		this.img=buImage;
		this.Y-=this.speed;
		
		for(int i=0;i<battleGame.list.size();i++){
			  Monster m=battleGame.list.get(i);
			  if(m!=null){
				  if(m instanceof SuperMonster && this.rect.intersects(m.rect)){
					  SuperMonster su=(SuperMonster)m;
					  ((SuperMonster) m).setLife(100);
					  battleGame.list.remove(this);
				  }
			  }
		}
		
	}

}
最近下载更多
微信网友_6550471470403584  LV1 2023年7月6日
2017143155  LV12 2023年6月27日
yangyanlong  LV1 2023年5月19日
1739332236  LV1 2023年2月23日
冯不二  LV1 2023年2月13日
可是不知道么  LV23 2021年11月29日
thinkerkkk  LV2 2021年6月22日
ldx1234  LV4 2021年5月22日
benbosn  LV15 2021年5月5日
 LV1 2021年4月14日
最近浏览更多
ClydeSon  LV5 2023年12月28日
1112WHQ  LV7 2023年11月3日
jiemomo  LV12 2023年10月19日
微信网友_6568795145506816  LV1 2023年7月19日
微信网友_6550471470403584  LV1 2023年7月6日
2017143155  LV12 2023年6月26日
暂无贡献等级
SILKYYY 2023年5月25日
暂无贡献等级
yangyanlong  LV1 2023年5月19日
小安同学  LV7 2023年5月11日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友