benj20
11-29-2006, 09:25 PM
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Gomoku extends MIDlet {
static Gomoku instance;
GameCanvas displayable = new GameCanvas();
public Gomoku() {
instance = this;
}
public void startApp() {
Display.getDisplay(this).setCurrent(displayable);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
***************
I like to add a image to the game when it is first run in the wireless toolkit before it load any other things.
So I like to ask it is in the StartApp() I should edit?
import javax.microedition.lcdui.*;
public class Gomoku extends MIDlet {
static Gomoku instance;
GameCanvas displayable = new GameCanvas();
public Gomoku() {
instance = this;
}
public void startApp() {
Display.getDisplay(this).setCurrent(displayable);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
***************
I like to add a image to the game when it is first run in the wireless toolkit before it load any other things.
So I like to ask it is in the StartApp() I should edit?