public static void main(String[] args) throws SlickException { AppGameContainer app = new AppGameContainer(new ElementalWar()); app.setDisplayMode(800, 600, false); app.setShowFPS(false); app.start(); }
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) throws SlickException { AppGameContainer app = new AppGameContainer(new Game(TITLE)); app.setDisplayMode(Screen.SCREEN_W, Screen.SCREEN_H, false); app.setAlwaysRender(true); app.setTargetFrameRate(60); app.setShowFPS(true); app.start(); }
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(); }
public static void main(String[] args) throws SlickException { // Erstellung des Programms/Fensters AppGameContainer app = new AppGameContainer(new BrickBreaker()); app.setShowFPS(false); app.setDisplayMode(1000, 700, false); // app.setVSync(true); Nur anmachen, falls es zu problemen kommt // Auf gehts... app.start(); }
public static void main(String[] arguments) { try { AppGameContainer app = new AppGameContainer(new Kyra()); app.setDisplayMode(1024, 768, false); app.setShowFPS(false); app.start(); } catch (SlickException e) { e.printStackTrace(); } }
/** * Run the game * * @param args Command line arguments */ public static void main(String[] args) { try { AppGameContainer app = new AppGameContainer(new BreakTheBlocks()); app.setDisplayMode(SCREEN_WIDTH, SCREEN_HEIGHT, FULL_SCREEN); app.setTargetFrameRate(TARGET_FRAMES_PER_SECOND); app.setShowFPS(SHOW_FRAMES_PER_SECOND); app.start(); } catch (SlickException e) { e.printStackTrace(); } }
public static void main(String[] args) { Main game = new Main(Main.TITLE); try { AppGameContainer app = new AppGameContainer(game); app.setDisplayMode(WIDTH, HEIGHT, false); app.setTargetFrameRate(60); app.setShowFPS(true); app.start(); } catch (SlickException e) { e.printStackTrace(); } }
/** * Boucle main * * @param args l'argument quand on lance le programme * @throws SlickException */ public static void main(String[] args) throws SlickException { loadNatives(Game.class); AppGameContainer appGc; try { appGc = new AppGameContainer(new Game(GAMENAME)); appGc.setDisplayMode(WIDTH, HEIGHT, false); appGc.setShowFPS(false); appGc.start(); } catch (SlickException ex) { ex.printStackTrace(); } }
/** * 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(); } }
/** * Starting point for the game. * * @param args Command line parameters */ public static void main(String[] args) { try { AppGameContainer app = new AppGameContainer(new RubberBandBall()); app.setDisplayMode(SCREEN_WIDTH, SCREEN_HEIGHT, false); app.setShowFPS(false); app.setVSync(true); app.start(); } catch (SlickException e) { // So we didn't even manage to start the freaking game now, did we. e.printStackTrace(); } }
public static void main(String[] args) { AppGameContainer appgc; try { appgc = new AppGameContainer(new Main(gamename)); height = appgc.getScreenHeight() - 80; width = appgc.getScreenWidth() - 15; appgc.setDisplayMode(width, height, false); appgc.setShowFPS(Menu.accepted); appgc.start(); } catch (SlickException e) { System.out.println("Cannot load Game"); } }
/** * 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(); } }
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(); } }
/** * O método main desta classe faz algumas configurações importantes para o jogo. * * @param args */ public static void main(String[] args) { AppGameContainer appgc; try { appgc = new AppGameContainer(new Main(gamename)); appgc.setDisplayMode( width, height, false); // configura o tamanho da tela e desabilita full screen. appgc.setTargetFrameRate(fps); // limita quantidade de FPS appgc.setShowFPS(false); // configura para que o fps não seja mostrado na tela do jogo appgc.setForceExit( false); // diz que a aplicação não vai ser abortada após o jogador fechar a tela do jogo. appgc.start(); // inicia o app game container } catch (SlickException e) { e.printStackTrace(); } }
public static void main(String[] args) { // TODO Auto-generated method stub // This is used to find out which OS is being used System.setProperty( "org.lwjgl.librarypath", new File(new File(System.getProperty("user.dir"), "native"), LWJGLUtil.getPlatformName()) .getAbsolutePath()); try { AppGameContainer app = new AppGameContainer(new Game("Game")); app.setDisplayMode(1050, 750, false); app.setTargetFrameRate(60); app.setShowFPS(false); app.start(); } catch (SlickException e) { e.printStackTrace(); } }
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 }
public static void main(String[] args) { try { gardenWidth = Integer.parseInt(settingsPropertiesManager.stringValueForKey("garden-width")); gardenHeight = Integer.parseInt(settingsPropertiesManager.stringValueForKey("garden-height")); displayWidth = gardenWidth * 10 + 10; displayHeight = gardenHeight * 10 + 100; AppGameContainer appGameContainer; appGameContainer = new AppGameContainer( new GameOfLife("Game of Life", gardenWidth, gardenHeight, GARDEN_WALLED)); appGameContainer.setTargetFrameRate(60); appGameContainer.setShowFPS(false); appGameContainer.setDisplayMode(displayWidth, displayHeight, false); appGameContainer.start(); } catch (SlickException e) { Logger.getLogger(SlickGameOfLife.class.getName()).log(Level.SEVERE, null, e); } catch (NumberFormatException e) { Logger.getLogger(SlickGameOfLife.class.getName()).log(Level.SEVERE, null, e); } }