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

📄 gamemidlet.java

📁 Source code of J2ME game called Action Soccer. Great for used. Already configurations with JBuilder
💻 JAVA
字号:
package com.soccer;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

public class GameMidlet extends MIDlet {
  public GameMidlet() {
    midlet = this;
    m_display = Display.getDisplay(this);
    if (getAppProperty("RoundTime") != null) {
      roundTime = Integer.parseInt(getAppProperty("RoundTime"));
    }
    gameScreen = new GameScreen();
    menuScreen = new MenuScreen(this);
    m_display.setCurrent(menuScreen);
  }

  public void startApp() {
  }

  public void pauseApp() {
  }

  public void destroyGame() {
    destroyApp(false);
    notifyDestroyed();
  }

  protected void destroyApp(boolean flag) {
    Display.getDisplay(this).setCurrent(null);
  }

  public static Display m_display;
  public static GameScreen gameScreen;
  public static MenuScreen menuScreen;
  public static boolean stopGame = false;
  public static MIDlet midlet = null;
  public static int roundTime = 90;

}

⌨️ 快捷键说明

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