⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 galaxywar.java

📁 经典的宇宙大战游戏代码(坦克大战)
💻 JAVA
字号:
/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */import javax.microedition.lcdui.Display;import javax.microedition.midlet.MIDlet;public class GalaxyWar extends MIDlet {    private static GalaxyWar instance;    private Display display = null;    private GalaxyWarCanvas disp = null;    /** Constructor */    public GalaxyWar() {        instance = this;        display = Display.getDisplay(this);        disp = new GalaxyWarCanvas(display);    }    /** Main method */    public void startApp() {        if (disp != null) {            display.setCurrent(disp);            disp.start();        }    }    /** 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 + -