📄 gamemidlet.java
字号:
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class GameMidlet extends MIDlet {
private GameScreen gs = null;
protected void destroyApp(boolean arg0){
}
protected void pauseApp() {
GameScreen.phoneIn();
}
protected void startApp() throws MIDletStateChangeException {
ActivateGameScreen(this);
}
/**
* 启动游戏
* @param gameMidlet
*/
private void ActivateGameScreen(GameMidlet gameMidlet) {
if(gs==null)
gs = new GameScreen(gameMidlet);
Display.getDisplay(this).setCurrent(gs);
}
/**
* 退出程序
*/
void Quit(){
notifyDestroyed();
destroyApp(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -