?? 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 + -