📄 arkanoid.java
字号:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class Arkanoid extends MIDlet implements CommandListener {
public Arkanoid() {
mDisplay = Display.getDisplay(this);
Ac = new ArkanoidCanvas(this);
}
public void startApp() {
mDisplay.setCurrent(Ac);
Ac.showNotify();
}
public void commandAction(Command command, Displayable displayable) {
if (command == exitCommand) {
destroyApp(true);
notifyDestroyed();
}
}
public void pauseApp() {
Ac.AllKeyCode = 0;
Ac.V = 0;
Ac.hideNotify();
}
public void destroyApp(boolean flag) {
Ac.recordJob(true);
}
public void ContinueGame() {
mDisplay.setCurrent(Ac);
Ac.StartGame();
}
public void NewGameScreenRequest() {
Ac.set_newgame();
mDisplay.setCurrent(Ac);
Ac.StartGame();
}
public void StartRound1() {
Ac.SetRound1();
Ac.set_newgame();
mDisplay.setCurrent(Ac);
Ac.StartGame();
}
public void SetRound(int i) {
Ac.SetRound(i);
}
public int GetMaxRound() {
return Ac.GetMaxRound();
}
public int GetCRd() {
return Ac.GetCRd();
}
private Command exitCommand;
private Display mDisplay;
private ArkanoidCanvas Ac;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -