📄 gamemidp.java
字号:
package game;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class GameMIDP extends MIDlet {
public static GameMIDP instance;
//GameManage display;
Displayable display;
/** Constructor */
public GameMIDP() {
instance = this;
display=new GameManage();
}
/** Main method */
public void startApp() {
Display.getDisplay(this).setCurrent(display);
}
/** Handle pausing the MIDlet */
public void pauseApp() {
}
/** Handle destroying the MIDlet */
public void destroyApp(boolean unconditional) {
}
/** Quit the MIDlet */
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -