public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = FlappyChapa.WIDTH; config.height = FlappyChapa.HEIGHT; config.title = FlappyChapa.TITLE; config.addIcon("icons/chapaicon.png", Files.FileType.Internal); config.addIcon("icons/chapaicon1.png", Files.FileType.Internal); config.addIcon("icons/chapaicon2.png", Files.FileType.Internal); new LwjglApplication(new FlappyChapa(), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = 1280; config.height = 720; config.title = Constants.NAME; config.backgroundFPS = 30; if (System.getProperties().getProperty("os.name").toLowerCase().contains("mac")) { config.addIcon("image/icon-512.png", Files.FileType.Internal); config.addIcon("image/icon-256.png", Files.FileType.Internal); } config.addIcon("image/icon-32.png", Files.FileType.Internal); config.addIcon("image/icon-16.png", Files.FileType.Internal); ArgumentParser argParser = new ArgumentParser(arg); Control[] controls = new Control[argParser.touchControl ? 3 : 2]; controls[0] = new ControlKeyboard(); controls[1] = new ControlController(); if (argParser.touchControl) controls[2] = new ControlTouch(); new LwjglApplication(new Client(controls, new Audio(), argParser), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "Miniventure"; config.width = GameCore.SCREEN_WIDTH; config.height = GameCore.SCREEN_HEIGHT; new LwjglApplication(new GameCore(), config); }
@Override protected void run(ApplicationListener applicationListener) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.addIcon("assets/icon-16x.png", Files.FileType.Internal); config.addIcon("assets/icon-32x.png", Files.FileType.Internal); config.addIcon("assets/icon-64x.png", Files.FileType.Internal); config.addIcon("assets/icon-128x.png", Files.FileType.Internal); config.vSyncEnabled = false; config.foregroundFPS = 0; config.backgroundFPS = 0; config.width = windowWidth; config.height = windowHeight; config.forceExit = false; new LwjglApplication(applicationListener, config); }
public static void main(String[] arg) { try { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.resizable = false; DesktopConfigEditor editor = new DesktopConfigEditor(); Config cfg = DesktopConfigUtil.buildConfig(editor); DesktopConfigUtil.setupLwjglConfig(config, cfg); LwjglApplication application = new LwjglApplication(new ArcadeLegendsGame(cfg), config); //application.postRunnable(() -> application.getGraphics().setUndecorated(true)); DesktopConfigUtil.registerStandardListeners(editor, cfg, config, application); } catch (Exception ex) { log.error(MarkerFactory.getMarker("ERROR"), "Error loading config", ex); System.exit(0); } }
public static void main (String[] arg) { if(!DEPLOYMENT) { //AutoPacking.size = 4096; AutoPacking.pack("game", "image", "game"); } //game KyperBoxGame game = new ParticleTests(); //config LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = (int) game.getView().getWorldWidth(); config.height = (int) game.getView().getWorldHeight(); config.title = game.getGameName(); new LwjglApplication(game, config); }
private static void setupDisplay(LwjglApplicationConfiguration config) { DisplayConfig displayConfig = Configs.loadRequireWithFallback("mod/display.json", "config/display.json", DisplayConfig.class); config.title = displayConfig.title; config.width = displayConfig.windowBounds.width; config.height = displayConfig.windowBounds.height; config.fullscreen = displayConfig.fullscreen; config.vSyncEnabled = displayConfig.vsync; config.backgroundFPS = displayConfig.backgroundFps; config.foregroundFPS = displayConfig.foregroundFps; // prepend current version to title ProjectConfig projectConfig = Configs.loadRequire("config/project.json", ProjectConfig.class); config.title = "[" + projectConfig.version + "] " + config.title; }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); PMD game = new PMD(); //set these things as these values for now can edit later //Gdx.graphics.getWidth and height return null because lwgwl app has not been made yet config.width = 1080; config.height = 720; config.vSyncEnabled = false; config.foregroundFPS = 60; config.backgroundFPS = 60; config.title = PMD.TITLE; //UISimpleTest test = new UISimpleTest(); LwjglApplication app = new LwjglApplication(game, config); }
public static void main(String[] args) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); new LwjglApplication(new Game(){ @Override public void create() { // play a pd patch Pd.audio.create(new PdConfiguration()); Pd.audio.open(Gdx.files.local("resources/test.pd")); // and sounds at the same time final Sound snd = Gdx.audio.newSound(Gdx.files.classpath("shotgun.wav")); snd.play(); Gdx.input.setInputProcessor(new InputAdapter(){ @Override public boolean touchDown(int screenX, int screenY, int pointer, int button) { snd.play(); return true; } }); }}, config); }
public static void main(String[] args) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); new LwjglApplication(new Game(){ @Override public void create() { // play a music Music music = Gdx.audio.newMusic(Gdx.files.classpath("cloudconnected.ogg")); music.setVolume(0.3f); music.play(); // and a pd patch at the same time Pd.audio.create(new PdConfiguration()); Pd.audio.open(Gdx.files.local("resources/test.pd")); }}, config); }
public AudioManager(Undertailor undertailor) { if (!AudioManager.audioReplaced) { log.info("Manager will now try to replace the audio system."); if (!LwjglApplicationConfiguration.disableAudio) { try { ((com.badlogic.gdx.backends.lwjgl.audio.OpenALAudio) Gdx.audio).dispose(); LwjglApplicationConfiguration config = undertailor.getApplicationConfiguration(); Gdx.audio = new OpenALAudio(config.audioDeviceSimultaneousSources, config.audioDeviceBufferCount, config.audioDeviceBufferSize); AudioManager.audioReplaced = true; log.info("Success."); } catch (Throwable t) { log.error("Failed.", t); } } } this.masterVolume = new BoundedFloat(0.0F, 1.0F, 1.0F); this.musicVolume = new BoundedFloat(0.0F, 1.0F, 1.0F); this.soundVolume = new BoundedFloat(0.0F, 1.0F, 1.0F); this.sounds = new ObjectMap<>(); this.music = new ObjectMap<>(); }
public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.useGL30 = false; config.width = 1024; config.height = 768; config.fullscreen = false; config.vSyncEnabled = config.fullscreen; Gdx.app = new LwjglApplication(new QuillysCastleGame(), config); Gdx.app.setLogLevel(Application.LOG_DEBUG); // Gdx.app.setLogLevel(Application.LOG_INFO); // Gdx.app.setLogLevel(Application.LOG_ERROR); // Gdx.app.setLogLevel(Application.LOG_NONE); }
public static void main(String[] args) { Thread.currentThread().setUncaughtExceptionHandler(new UncaughtExceptionHandler() { @Override public void uncaughtException(Thread arg0, Throwable arg1) { System.out.println("Thread " + arg0); arg1.printStackTrace(); } }); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = UIConfig.TERM_WIDTH * UIConfig.CELL_WIDTH; config.height = UIConfig.TERM_HEIGHT * UIConfig.CELL_HEIGHT; config.title = "Anathema"; config.vSyncEnabled = false; config.foregroundFPS = 0; config.backgroundFPS = 30; config.resizable = false; //config.addIcon(path, fileType); new LwjglApplication(Game.getInstance(), config); Game.getInstance().start(); }
public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); // config.width = 1280; // config.height = 720; config.width = 1800; config.height = 1000; // config.width = 1920; // config.height = 1080; // config.width = 100; // config.height = 100; // config.width = 800; // config.height = 600; // config.fullscreen = true; config.fullscreen = false; config.resizable = false; new LwjglApplication(new SpaceTravels3(), config); }
/** * Entry point. * --development option forces regenerating atlases * * @param args the command line arguments */ @SuppressWarnings("unused") public static void main(String[] args) throws IOException { Psychobear game = new Psychobear(); LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.vSyncEnabled = true; cfg.width = 1280; cfg.height = 720; cfg.fullscreen = false; cfg.useGL30 = true; ShaderProgram.prependVertexCode = "#version 140\n#define varying out\n#define attribute in\n"; ShaderProgram.prependFragmentCode = "#version 140\n#define varying in\n#define texture2D texture\n#define gl_FragColor fragColor\nout vec4 fragColor;\n"; LwjglApplication app = new LwjglApplication(game, cfg); }
public static void main (String[] arg) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "Inspiration"; cfg.useGL30 = false; cfg.width = 640; cfg.height = 480; // cfg.width = 800; // cfg.height = 600; // fullscreen // cfg.fullscreen = true; // vSync // cfg.vSyncEnabled = true; cfg.addIcon("icon.png", Files.FileType.Internal); Gdx.app = new LwjglApplication(new Inspiration(), cfg); //Gdx.app.setLogLevel(Application.LOG_INFO); Gdx.app.setLogLevel(Application.LOG_DEBUG); //Gdx.app.setLogLevel(Application.LOG_ERROR); //Gdx.app.setLogLevel(Application.LOG_NONE); }
public static void main (String[] arg) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "Inspiration"; cfg.useGL30 = false; cfg.width = 640; cfg.height = 480; // cfg.width = 800; // cfg.height = 600; // fullscreen // cfg.fullscreen = true; // vSync // cfg.vSyncEnabled = true; cfg.addIcon("icon.png", Files.FileType.Internal); Gdx.app = new LwjglApplication(new Inspiration(), cfg); //Gdx.app.setLogLevel(Application.LOG_INFO); // Gdx.app.setLogLevel(Application.LOG_DEBUG); //Gdx.app.setLogLevel(Application.LOG_ERROR); //Gdx.app.setLogLevel(Application.LOG_NONE); }
public static void start(Arguments arguments) { LoggerUtils.setupExternalFileOutput(); final LwjglApplicationConfiguration configuration = new LwjglApplicationConfiguration(); configuration.title = AppConstants.APP_TITLE; configuration.addIcon("icon128.png", Files.FileType.Classpath); configuration.addIcon("icon32.png", Files.FileType.Classpath); configuration.addIcon("icon16.png", Files.FileType.Classpath); configuration.preferencesDirectory = AppConstants.EXTERNAL_DIR; configuration.width = 1024; configuration.height = 600; configuration.allowSoftwareMode = arguments.softOpenGL; AppParams appParams = new AppParams(); appParams.startupProject = arguments.project; App app = new App(new DesktopClassScanner(), appParams); new LwjglApplication(new WindowParamsPersistingApplicationWrapper(app, configuration), configuration); }
public static void main(String[] args) { LwjglApplicationConfiguration conf = ApplicationStartup.getConfiguration(); // conf.width = 600; conf.height = 338; conf.width = 480; conf.height = 270; conf.x = 50; // conf.width = 800; conf.height = 450; // cancel fps limit // conf.vSyncEnabled = false;conf.backgroundFPS = 0;conf.foregroundFPS = 0; ApplicationStartup.start(new TestAppDelegate_Tests()); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = 800; config.height = 800; config.resizable = false; config.title = "HexCity"; config.addIcon("icons/icon-128.png", Files.FileType.Internal); config.addIcon("icons/icon-32.png", Files.FileType.Internal); config.addIcon("icons/icon-16.png", Files.FileType.Internal); new LwjglApplication(new LudumDare38(), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "ShootMe"; config.width = 1280; config.height = 720; config.addIcon("assets/guenter_icon32px.png", Files.FileType.Internal); config.addIcon("assets/guenter_icon16px.png", Files.FileType.Internal); config.resizable = false; new LwjglApplication(new ShootMeGame(), config); }
public static void main (String[] arg) { //Initialize log file try { File file = new File("log.txt"); if (file.exists()) { file.delete(); } PrintStream printStream = new PrintStream(file); System.setOut(printStream); System.setErr(printStream); } catch (FileNotFoundException fileNotFoundException) { System.out.println("Could not create log file."); } //Initialize application Graphics.DisplayMode selectedDisplayMode = LwjglApplicationConfiguration.getDesktopDisplayMode(); if (selectedDisplayMode != null) { GameModule gameModule = GameModuleProvider.provideGameModule(); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.setFromDisplayMode(selectedDisplayMode); config.vSyncEnabled = true; if (gameModule.provideIconFileName() != null) { config.addIcon(gameModule.provideIconFileName(), Files.FileType.Internal); } new LwjglApplication(new GGVmApplication(gameModule, PCMenu.class, KeyboardInputProcessor.class), config); } else { System.out.println("Sorry, this game requires a graphics card that can display 32 bpp!"); } }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); float scale=1f; config.width= (int) (800*scale); config.height= (int) (480*scale); new LwjglApplication(new TestGame(), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = 1600; config.height = 900; config.fullscreen = false; config.title = "Planet Generator"; new LwjglApplication(new PlanetGeneratorGame(), config); }
public static void main (String[] arg) throws IOException { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "Catan"; // TODO : Set the game to match the demo computer resolution & fullscreen to true config.width = 1280; config.height = 720; //config.fullscreen = true; new LwjglApplication(new CatanGame(), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = Constants.WINDOW_TITLE; config.width = Constants.WINDOW_WIDTH; config.height = Constants.WINDOW_HEIGHT; new LwjglApplication(new MainGame(), config); }
/** * Main function to launch game on desktop * * @param arg Main arguments. */ public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "Armadillo"; config.height = 720; config.width = 1280; new LwjglApplication(new Armadillo(new NullGameServices()), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = G.SCREEN_WIDTH; config.height = G.SCREEN_HEIGHT; config.title = "LD39"; new LwjglApplication(new GdxArtemisGame(), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "Parasites of HellSpace"; config.width = 500; config.height = 800; config.vSyncEnabled = true; new LwjglApplication(new SIGame(), config); }
public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.addIcon("icons/conquest-128.png", Files.FileType.Internal); config.addIcon("icons/conquest-32.png", Files.FileType.Internal); config.addIcon("icons/conquest-16.png", Files.FileType.Internal); config.resizable = false; config.width = 1280; config.height = 720; new LwjglApplication(new Conquest(), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.height = FlappyBaran.HEIGHT; config.width = FlappyBaran.WIDTH; config.title = FlappyBaran.TITLE; new LwjglApplication(new FlappyBaran(), config); }
public static void main(String[] args) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "gdxengine"; cfg.useGL20 = true; cfg.width = 1024; cfg.height = 600; new LwjglApplication(new TowerDefenseGame(), cfg); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = 1280; config.height = 720; config.resizable = false; new LwjglApplication(new Game(new Advertisements() { @Override public void showAds() { } }), config); }
public static void main(String[] arg) { //System.setProperty("org.lwjgl.util.Debug", "true"); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = ProjectTD.V_WIDTH; config.height = ProjectTD.V_HEIGHT; new LwjglApplication(new ProjectTD(), config); }
/** * Entry point. */ public static void main(String[] args) { Game game = new GameMain(); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.fullscreen = false; config.width = 960; config.height = 720; config.resizable = false; config.title = GameMain.GAME_TITLE; config.addIcon("resources/icon32.png", FileType.Internal); lwjglApplication = new LwjglApplication(game, config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "Cursed Echo"; config.width = 1280; config.height = 720; new LwjglApplication(new Main(), config); }
public static void main (String[] arg) { System.arraycopy(arg, 0, defaultArgs, 0, arg.length); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = Integer.parseInt(defaultArgs[1]); config.height = Integer.parseInt(defaultArgs[2]); config.fullscreen = Boolean.parseBoolean(defaultArgs[3]); config.title = "Obscurité"; config.vSyncEnabled = true; config.resizable = false; new LwjglApplication(new Main(defaultArgs[0]), config); }
public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width = GameTutorial.WIDTH; config.height = GameTutorial.HEIGHT; config.title = GameTutorial.TITLE; new LwjglApplication(new GameTutorial(), config); }