public static void main(String[] args) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "Boy In The Bubble"; cfg.useGL20 = true; cfg.samples = 4; cfg.width = 480; cfg.height = 320; cfg.vSyncEnabled = true; cfg.foregroundFPS = 60; new LwjglApplication(new GameScreen(), cfg); }
public static void main(String[] arg) { width = 1; height = 1; LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.fullscreen = false; config.vSyncEnabled = true; config.width = width; config.height = height; config.foregroundFPS = 60; config.allowSoftwareMode = true; config.samples = 2; new LwjglApplication(new LovePirates(), config); // config.fullscreen = true; }
public static void main(String[] args) { DisplayMode displayMode = LwjglApplicationConfiguration.getDesktopDisplayMode(); // try { // // find first display mode that allows us 640*480*16 // int mode = -1; // DisplayMode[] modes = LwjglApplicationConfiguration.getDisplayModes(); // for (int i = 0; i < modes.length; i++) { // if (modes[i].width == 800 && modes[i].height == 480) { // mode = i; // break; // } // } // if (mode != -1) { // // select above found displaymode // System.out.println("Setting display mode to " + modes[mode]); // displayMode = modes[mode]; // System.out.println("Created display."); // } // } catch (Exception e) { // System.err.println("Failed to create display due to " + e); // } // LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.setFromDisplayMode(displayMode); config.width = 800; config.height = 480; config.title = "Qb"; config.fullscreen = false; config.samples = 4; config.useGL20 = true; config.vSyncEnabled = true; config.useCPUSynch = true; new LwjglApplication(new DesktopStarter(), config); }