List of usage examples for com.badlogic.gdx.backends.lwjgl LwjglApplicationConfiguration addIcon
public void addIcon(String path, FileType fileType)
From source file:ca.hiphiparray.amazingmaze.desktop.DesktopLauncher.java
License:Open Source License
public static void main(String[] arg) { System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true"); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); DisplayMode displayMode = LwjglApplicationConfiguration.getDesktopDisplayMode(); config.setFromDisplayMode(displayMode); config.title = "Amazing Maze"; config.vSyncEnabled = true;/* w w w. j av a2s .c o m*/ config.foregroundFPS = 0; config.addIcon("icons/128.png", FileType.Internal); config.addIcon("icons/32.png", FileType.Internal); config.addIcon("icons/16.png", FileType.Internal); new LwjglApplication(new AmazingMazeGame(), config); }
From source file:com.bladecoder.engineeditor.Main.java
License:Apache License
public static void main(final String[] args) { // This dummy instantiation will initialize JavaFX for us new JFXPanel(); LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "Adventure Editor v" + Versions.getVersion(); // Rectangle2D bounds = Screen.getPrimary().getVisualBounds(); // cfg.width = (int) (bounds.getWidth() - bounds.getWidth() * 0.1); // cfg.height = (int) (bounds.getHeight() - bounds.getHeight() * 0.1); cfg.resizable = true;/*w ww . ja v a2 s . c o m*/ // cfg.samples = 2; // cfg.useGL30 = true; if (Main.class.getResource("/images/ic_app64.png") != null) cfg.addIcon("images/ic_app64.png", FileType.Internal); if (Main.class.getResource("/images/ic_app32.png") != null) cfg.addIcon("images/ic_app32.png", FileType.Internal); if (Main.class.getResource("/images/ic_app16.png") != null) cfg.addIcon("images/ic_app16.png", FileType.Internal); parseArgs(args); new Main(new Editor(), cfg); }
From source file:com.github.badoualy.badoualyve.desktop.DesktopLauncher.java
License:Open Source License
public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); // Customize your desktop application window config.title = WantedGame.TITLE;/*from w ww . j a va2s . c o m*/ config.width = WantedGame.V_WIDTH; config.height = WantedGame.V_HEIGHT; config.resizable = false; config.addIcon("icon.png", Files.FileType.Internal); new LwjglApplication(new TetrisGame(), config); }
From source file:com.jmolina.orb.desktop.DesktopLauncher.java
License:Open Source License
public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.fullscreen = false;/* w w w . j av a2 s. c om*/ config.height = (int) Var.SCREEN_HEIGHT; config.width = (int) Var.SCREEN_WIDTH; config.title = Var.APP_NAME + " " + Var.APP_VERSION; config.addIcon(Asset.APP_ICON_256, Files.FileType.Internal); config.addIcon(Asset.APP_ICON_128, Files.FileType.Internal); config.addIcon(Asset.APP_ICON_64, Files.FileType.Internal); config.addIcon(Asset.APP_ICON_32, Files.FileType.Internal); config.addIcon(Asset.APP_ICON_16, Files.FileType.Internal); new LwjglApplication(new ImpulseOrb(), config); }
From source file:com.laststandstudio.space.desktop.DesktopLauncher.java
License:Open Source License
public static void main(String[] args) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); StartupOptions startupOptions = new StartupOptions(); new JCommander(startupOptions, args); if (startupOptions.dedicatedServer) { try {//from ww w .ja v a 2 s .c o m new SpaceShooter(startupOptions); new Server(startupOptions).start(); } catch (Exception e) { e.printStackTrace(); } return; } config.title = "South River Space Shooter"; //TODO: Fix the auto Resolution Generator for Dual Monitor Support. config.height = startupOptions.debug ? 6 * 100 : Toolkit.getDefaultToolkit().getScreenSize().height; config.width = startupOptions.debug ? 11 * 100 : Toolkit.getDefaultToolkit().getScreenSize().width; config.fullscreen = !startupOptions.debug; config.resizable = startupOptions.debug; config.vSyncEnabled = true; config.useHDPI = true; config.allowSoftwareMode = true; config.addIcon("splash/favicon-blue.png", Files.FileType.Internal); new LwjglApplication(new SpaceShooter(startupOptions), config); }
From source file:com.longarmx.color.Main.java
License:Apache License
public static void main(String[] args) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = ORIGINAL_WIDTH;//from w ww . j av a2 s. co m config.height = ORIGINAL_HEIGHT; config.useGL20 = true; config.resizable = false; config.addIcon("res/icon128.png", FileType.Internal); config.addIcon("res/icon32.png", FileType.Internal); config.addIcon("res/icon16.png", FileType.Internal); try { config.title = "Chromalusus - V: " + new Scanner(new File("res/VERSION.txt")).nextLine(); } catch (FileNotFoundException e) { e.printStackTrace(); } instance = new Game(); new LwjglApplication(instance, config); }
From source file:com.torrosoft.triviazo.TriviazoDesktopLauncher.java
License:Open Source License
public static void main(final String[] args) { final ApplicationListener listener = new TriviazoGame(new DatabaseDesktop()); final LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); // java.awt.Toolkit.getDefaultToolkit().getScreenSize().width; // java.awt.Toolkit.getDefaultToolkit().getScreenSize().height; cfg.title = "Triviazo"; cfg.useGL20 = true;//from ww w . j a va 2 s. c o m // cfg.fullscreen = true; // cfg.resizable = false; cfg.width = 800; // 1280 1152 800 cfg.height = 480; // 720 648 480 cfg.addIcon("icon.png", FileType.Internal); new LwjglApplication(listener, cfg); }
From source file:de.thomas.pure_tetris.Main.java
License:Open Source License
public static void main(String[] args) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "Tetris"; cfg.width = 480;/* w w w .j a v a 2s . co m*/ cfg.height = 800; cfg.addIcon("O.png", FileType.Internal); cfg.addIcon("OMiddle.png", FileType.Internal); cfg.addIcon("OSmall.png", FileType.Internal); new LwjglApplication(new Tetris(), cfg); }
From source file:dhx.amidakuji.desktop.Main.java
License:Open Source License
public static void main(String[] args) { AmidakujiMain amidakuji = new AmidakujiMain(); AmidakujiMain.width = 1080;//w w w . jav a 2 s. c om AmidakujiMain.height = 720; LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "Amidakuji Version 0.4.3"; // cfg.useGL20 = true; cfg.width = AmidakujiMain.width; cfg.height = AmidakujiMain.height; if (System.getProperty("os.name").toLowerCase().indexOf("mac os x") != -1) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Amidakuji"); Application app = Application.getApplication(); app.setDockIconImage( Toolkit.getDefaultToolkit().getImage(Main.class.getResource("/amidakuji_mac.png"))); } else { cfg.addIcon("amidakuji.png", FileType.Internal); cfg.addIcon("amidakuji_lin.png", FileType.Internal); } new LwjglApplication(amidakuji, cfg); }
From source file:es.danirod.rectball.desktop.DesktopLauncher.java
License:Open Source License
public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = 400;/*from w ww.j a va2 s. c o m*/ config.height = 640; config.title = "Rectball " + Constants.VERSION; config.useHDPI = true; config.addIcon("icon.png", Files.FileType.Internal); new LwjglApplication(new RectballGame(new DesktopPlatform()), config); }