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

📄 xuanzhuanmidlet.java

📁 在手机游戏中用于实现图片的翻转效果改变图片
💻 JAVA
字号:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class xuanzhuanMIDlet
    extends MIDlet {
  static xuanzhuanMIDlet instance;
  GameCanvas gameCanvas;
  public xuanzhuanMIDlet() {
    instance = this;
    gameCanvas = new GameCanvas(this);

  }

  public void startApp() {
    Display.getDisplay(this).setCurrent(gameCanvas);
  }

  public void pauseApp() {
  }

  public void destroyApp(boolean unconditional) {
    gameCanvas.Release();
    gameCanvas = null;
    System.gc();
  }

  public static void quitApp() {
    instance.destroyApp(true);
    instance.notifyDestroyed();
    instance = null;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -