midlet game canvas : cobain deh...
package GameCanvasPackage;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class MidletGameCanvas extends MIDlet {
private Display display;
public void startApp() {
display = Display.getDisplay(this);
DrawGameCanvas gameCanvas = new DrawGameCanvas();
gameCanvas.start();
display.setCurrent(gameCanvas);
}
public Display getDisplay() {
return display;
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {
exit();
}
public void exit() {
System.gc();
notifyDestroyed();
}
}
semoga berhasil...
Jumat, 27 Februari 2009
lab aktiviti 3
by lutvi
Langganan:
Posting Komentar (Atom)
0 comment:
Posting Komentar