public static void main(String[] args) {
   GameLoader game = new GameLoader();
   game.setup(new OverlayExample(), new Dimension(640, 480), false);
   game.start();
 }
 public static void main(String[] args) {
   GameLoader game = new GameLoader();
   game.setup(new DropThis(), new Dimension(300, 300), false);
   game.start();
 }
 public static void main(String[] args) {
   GameLoader game = new GameLoader();
   CatRollGame cat = new CatRollGame();
   game.setup(cat, new Dimension(800, 600), false);
   game.start();
 }
Beispiel #4
0
 /**
  * Main method to run this info frame.
  *
  * @param args Application arguments.
  */
 public static void main(String[] args) {
   GameLoader game = new GameLoader();
   game.setup(new LibInfo(), new Dimension(600, 450), false);
   game.start();
 }
  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();
  }
 public static void launchGame(VoogaGame game, Dimension dimension, boolean fullScreen) {
   GameLoader loader = new GameLoader();
   loader.setup(game, dimension, fullScreen);
   loader.start();
 }