Exemple #1
0
 public static void main(String[] args) throws SlickException {
   AppGameContainer app = new AppGameContainer(new Main());
   app.setDisplayMode(C.SCREEN_WIDTH, C.SCREEN_HEIGHT, false);
   app.setShowFPS(C.DEBUG_MODE);
   app.setMouseGrabbed(true);
   app.start();
 }
 public static void main(String[] args) {
   LoadingList.setDeferredLoading(true);
   try {
     AppGameContainer app = new AppGameContainer(new DragonGame());
     app.setDisplayMode(width, height, fullscreen);
     app.setShowFPS(false);
     app.setMouseGrabbed(false);
     app.setTargetFrameRate(60);
     app.setAlwaysRender(true);
     app.setUpdateOnlyWhenVisible(true);
     app.start();
   } catch (SlickException e) {
     e.printStackTrace();
   }
 }