Examples of switchState()


Examples of com.googlecode.jumpnevolve.graphics.AbstractEngine.switchState()

        return new Vector(400, 100);
      }
    });

    // engine.setTargetFrameRate(Parameter.GAME_FPS_TARGET);
    engine.switchState(world);
    engine.start();
  }
}
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.AbstractEngine.switchState()

   */
  public static void main(String[] args) {
    AbstractEngine engine = Engine.getInstance();

    engine.setTargetFrameRate(Parameter.GAME_FPS_TARGET);
    engine.switchState(new MainMenu("levels/"));
    engine.start();
  }

}
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.AbstractEngine.switchState()

   */
  public static void main(String[] args) throws IOException {
    AbstractEngine engine = Engine.getInstance();

    engine.setTargetFrameRate(Parameter.GAME_FPS_TARGET);
    engine.switchState(new Editor(100, 100, 1));
    engine.start();
  }
}
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.AbstractEngine.switchState()

  private void loadWithNewSettings() throws IOException {
    Log.info("Übernehme Einstellungen für den Editor");
    Dialog.disableAll();
    this.saveLevel("reload-save.txt");
    AbstractEngine engine = Engine.getInstance();
    engine.switchState(new Editor(this.parentMenu, "reload-save.txt",
        Integer.parseInt(this.settingsDialog.getContentable("Breite")
            .getContent()), Integer.parseInt(this.settingsDialog
            .getContentable("Höhe").getContent()), Integer
            .parseInt(this.settingsDialog.getContentable(
                "Subarea-Breite").getContent())));
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.Engine.switchState()

      // TODO: Ressourcen laden

      // TODO: Hauptmenü laden

      // Demolevel laden und darstellen
      engine.switchState(new DemoLevel(new LevelWorldFactory()).getSimulatedWorld());

      // Die Engine starten.
      // Das Programm wird automatisch aufgeräumt und beendet,
      // wenn der Benutzer das Fenster schließt.
      engine.start();
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.SlickEngine.switchState()

    SlickEngine engine = SlickEngine.getInstance();
    engine.setTargetFrameRate(100);

    Level level = Levelloader
        .asyncLoadLevel("resources/levels/up-to-the-sky.txt");
    engine.switchState(level);

    engine.start();
  }
}
View Full Code Here

Examples of com.googlecode.jumpnevolve.graphics.SlickEngine.switchState()

    World world = new World(1000, 300, 1);
    world.setZoom(3000);

    world.add(new Ground(world, new Vector(300, 300), new Vector(800, 20)));

    engine.switchState(world);

    engine.start();
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.