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

📄 helpscreen.java

📁 J2ME & Gaming中文版教程,里来还包含该书的源码,是手机游戏的书.相信大家看了之后,会对手机游戏编程有一个很深的了解
💻 JAVA
字号:
import javax.microedition.lcdui.*;

public class HelpScreen extends Form implements CommandListener {
  private Eliminator midlet;

  private Command backCommand = new Command("Back", Command.BACK, 1);

  public HelpScreen (Eliminator midlet) throws Exception {
    super("Help");
    this.midlet = midlet;
    StringItem stringItem = new StringItem(null,
    "It is the year 3023, many things have changed over the years " +
    "including the Great Migration to Earth II.  " +
    "But the one thing that hasn't changed is the struggle for " +
    "Power and Wealth.  You are one the last remaning hopes " +
    "to defend Earth II from total dominance by Evil Ruler named " +
    "Zikron.  You mission is to eliminate Zikron and his " +
    "minions from the face of the Earth II"
                                                );
    append(stringItem);
    addCommand(backCommand);
    setCommandListener(this);
  }  

  public void commandAction(Command c, Displayable d) {
    if (c == backCommand) {
      midlet.mainMenuScreenShow(null);
      return;
    }
  }
}

⌨️ 快捷键说明

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