コード例 #1
0
 public static void main(String[] args) throws SlickException {
   AppGameContainer app = new AppGameContainer(new IceIceBabyGame());
   app.setDisplayMode(Game.WINDOW_WIDTH, Game.WINDOW_HEIGHT, false);
   app.setVSync(true);
   app.setFullscreen(false);
   app.setShowFPS(false);
   //       app.setIcon("res//images//icon.png");
   app.start();
 }
コード例 #2
0
 /**
  * Método principal del juego
  *
  * @param args: argumentos del programa
  */
 public static void main(String[] args) {
   try {
     AppGameContainer app =
         new AppGameContainer(new LuffySurvival(Locale.INSTANCE.getText("title")));
     app.setDisplayMode(WIDTH, HEIGHT, false);
     app.setFullscreen(p.isFullScreen());
     app.setShowFPS(false);
     app.setVSync(true);
     app.start();
   } catch (SlickException e) {
     e.printStackTrace();
   }
 }