示例#1
0
文件: Main.java 项目: reiknight/ld26
 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();
 }
示例#2
0
 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();
   }
 }