资 源 简 介
import javax.microedition.lcdui.**;
import javax.microedition.midlet.**;
public class Guns extends MIDlet{
private Display display;
private MainCanvas mainCanvas;
public Guns(){
display = Display.getDisplay(this);
}
public void startApp(){
mainCanvas = new MainCanvas(this, display);
display.setCurrent(mainCanvas);
new Thread(mainCanvas).start();
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional){
}
public void exitMIDlet(){
destroyApp(false);
notifyDestroyed();
}
}
//UNTUK MAINCANVAS
import javax.microedition.lcdui.**;
import java.io.IOException;**
public class MainCanvas extends Canvas implements Runnable, CommandListener{
private Display display;
private Guns midlet;
private Image image;
int x = 0;
int y = 0;
int xKotak;
int yKotak;
Command cmdNewGame = new Comm