📄 gamemidlet.java
字号:
import java.io.IOException;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class gameMIDlet extends MIDlet {
Display display;
Image corLogo;
Image gameLogo;
boolean isSplash = true;
menuScreen menu;
public gameMIDlet() {
}
protected void startApp() throws javax.microedition.midlet.MIDletStateChangeException {
/**@todo Implement this javax.microedition.midlet.MIDlet abstract method*/
display = Display.getDisplay(this);
if (isSplash) {
isSplash = false;
try {
gameLogo = Image.createImage("/res/gameLogo.png");
corLogo = Image.createImage("/res/corLogo.png");
menu = new menuScreen(display, gameLogo, this);
new splashScreen(display, menu, corLogo, 800);
} catch (Exception exp) {}
}
}
protected void pauseApp() {
/**@todo Implement this javax.microedition.midlet.MIDlet abstract method*/
}
public void destroyApp(boolean parm1) {
/**@todo Implement this javax.microedition.midlet.MIDlet abstract method*/
System.gc();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -