/** * Start the game as an application * * @param game The game to be started * @param width The width of the window * @param height The height of the window * @param fullscreen True if the window should be fullscreen */ public static void runAsApplication(Game game, int width, int height, boolean fullscreen) { try { AppGameContainer container = new AppGameContainer(game, width, height, fullscreen); container.start(); } catch (Exception e) { e.printStackTrace(); } }
/** * @see org.newdawn.slick.Game#closeRequested() */ public boolean closeRequested() { // To run Cleanup at window close de.tu_darmstadt.gdi1.gorillas.main.Game.cleanupOnExit(); return true; }
/** * Start the game as an application * * @param game The game to be started * @param width The width of the gui * @param height The height of the gui * @param fullscreen True if the gui should be fullscreen */ public static void runAsApplication(Game game, int width, int height, boolean fullscreen) { try { AppGameContainer container = new AppGameContainer(game, width, height, fullscreen); container.start(); } catch (Exception e) { e.printStackTrace(); } }
public TWLTestAppGameContainer(Game game) throws SlickException { super(game, 640, 480, false); }
public TWLTestAppGameContainer(Game game, int width, int height, boolean fullscreen) throws SlickException { super(game, width, height, fullscreen); }
/** * Create a new container wrapping a game * * @param game The game to be wrapped * @throws SlickException Indicates a failure to initialise the display */ public Container(Game game) throws SlickException { super(game); }
/** * Create a new container wrapping a game * * @param game The game to be wrapped * @param width The width of the display required * @param height The height of the display required * @param fullscreen True if we want fullscreen mode * @throws SlickException Indicates a failure to initialise the display */ public Container(Game game, int width, int height, boolean fullscreen) throws SlickException { super(game, width, height, fullscreen); }