Esempio n. 1
0
  public void run() {
    Game gameObject = null;
    Dimension dimension = new Dimension(640, 480);
    boolean fullscreen = false;

    if (action.equals("Tutorial5_1")) {
      gameObject =
          new Tutorial5_1() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial5_2")) {
      gameObject = new Tutorial5_2();
      fullscreen = true;

    } else if (action.equals("Tutorial6")) {
      gameObject =
          new Tutorial6() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial7_1")) {
      gameObject =
          new Tutorial7_1() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial7_2")) {
      gameObject =
          new Tutorial7_2() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial7_3")) {
      gameObject =
          new Tutorial7_3() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial8_1")) {
      gameObject =
          new Tutorial8_1() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial8_2")) {
      gameObject =
          new Tutorial8_2() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial8_3")) {
      gameObject =
          new Tutorial8_3() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial9_1")) {
      gameObject =
          new Tutorial9_1() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial9_2")) {
      gameObject =
          new Tutorial9_2() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial10")) {
      gameObject =
          new Tutorial10() {
            protected void notifyExit() {}
          };

    } else if (action.equals("Tutorial11")) {
      gameObject =
          new Tutorial11() {
            protected void notifyExit() {}
          };
    }

    // create the game!
    GameLoader game = new GameLoader();
    game.setup(gameObject, dimension, fullscreen);
    game.start();
  }