JAVA中飞机大战把命用图标表示

如何把飞机大战的命用图标表示

public int getDoubleFire() {
return doubleFire;
}

public int getLife() {
    return life;
}

Hero(){
    life=3;
    doubleFire=1;
    image=ShootGame.hero0;//初始化英雄的图片
    width=image.getWidth();//获取英雄的宽度
    height=image.getHeight();
    x=150;
    y=400;//开始时英雄的坐标

}

这个看我的文章就行,我文章有写