예제 #1
0
 public static void main(String[] args) {
   try {
     RunnerGame game = new RunnerGame("runner");
     AppGameContainer appgc = new AppGameContainer(game);
     appgc.setDisplayMode(GAME_WIDTH, GAME_HEIGHT, false);
     appgc.setMinimumLogicUpdateInterval(1000 / 60);
     appgc.start();
   } catch (SlickException e) {
     e.printStackTrace();
   }
 }
예제 #2
0
  public static void main(String[] args) {
    try {
      container = new AppGameContainer(new TranparencyTest());
      container.setMinimumLogicUpdateInterval(20);
      container.setDisplayMode(800, 600, false);
      container.setClearEachFrame(false);
      container.start();

    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
예제 #3
0
파일: Game.java 프로젝트: NeoN0x/JeeTrix
 /**
  * Création de la fenêtre
  *
  * @param args
  */
 public static void main(String[] args) {
   try {
     AppGameContainer app = new AppGameContainer(new Game());
     app.setShowFPS(false);
     app.setMinimumLogicUpdateInterval(Game.FRAME_TIME);
     app.setMaximumLogicUpdateInterval(Game.FRAME_TIME);
     app.setDisplayMode(800, 600, fullscreen);
     app.start();
   } catch (SlickException e) {
     e.printStackTrace();
   }
 }
예제 #4
0
  public static void main(String[] args) {
    game = new Game("Platformer");
    AppGameContainer appGC;
    try {
      appGC = new AppGameContainer(game);
      appGC.setDisplayMode(WIDTH, HEIGHT, false);
      appGC.setShowFPS(false);
      appGC.setTargetFrameRate(60);

      appGC.setMaximumLogicUpdateInterval(
          20); // this makes it so that the speed of the game isn't connected to the FPS
      appGC.setMinimumLogicUpdateInterval(20);

      appGC.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
    // test - Marc
  }