1.JetBoyView extends SurfaceView implements SurfaceHolder.Callback//主要是处理view
2.class GameEvent//处理game的事件
3.class JetBoyThread extend Thread
// our intrepid space boy
private Bitmap[] mShipFlying = new Bitmap[4];//
// the twinkly bit
private Bitmap[] mBeam = new Bitmap[4];
// the things you are trying to hit
private Bitmap[] mAsteroids = new Bitmap[12];
// hit animation
private Bitmap[] mExplosions = new Bitmap[4];
private boolean muteMask[][] = new boolean[9][32];//
初始化的时候 mTimer=new Timer();//初始化一个timer
4.public class Asteroid {//表示行星的属性类
public int mAniIndex = 0;
public int mDrawY = 0;
public int mDrawX = 0;
public boolean mExploding = false;
public boolean mMissed = false;
public long mStartTime = 0;
}
5.public class Explosion {//表示爆炸的属性类
public int mAniIndex = 0;
public int mDrawY = 0;
public int mDrawX = 0;
}