Java Code Examples for com.badlogic.gdx.backends.lwjgl.LwjglApplication

The following examples show how to use com.badlogic.gdx.backends.lwjgl.LwjglApplication. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: shapedrawer   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main (String[] arg) {
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	config.width = 1200;
	config.height = 800;
	config.resizable  = false;
	config.samples = 4;
	new LwjglApplication(new ShapeDrawerTest(), config);
}
 
Example 2
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 3
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 4
Source Project: gdx-gltf   Source File: DesktopBatchTestLauncher.java    License: Apache License 2.0 5 votes vote down vote up
public static void main (String[] arg) {
	
	// required for HTTPS requests
	System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");

	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	config.width = 1024;
	config.height = 768;
	new LwjglApplication(arg.length > 0 ? new GLTFTest(arg[0]) : new GLTFTest(), config);
}
 
Example 5
Source Project: Klooni1010   Source File: DesktopLauncher.java    License: GNU General Public License v3.0 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.title = "Klooni 1010!";
    config.width = Klooni.GAME_WIDTH;
    config.height = Klooni.GAME_HEIGHT;
    config.addIcon("ic_launcher/icon128.png", Files.FileType.Internal);
    config.addIcon("ic_launcher/icon32.png", Files.FileType.Internal);
    config.addIcon("ic_launcher/icon16.png", Files.FileType.Internal);
    new LwjglApplication(new Klooni(null), config);
}
 
Example 6
Source Project: typing-label   Source File: TypingLabelTest.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.title = "TypingLabel Test";
    config.width = 720;
    config.height = 405;
    config.depth = 16;
    config.fullscreen = false;
    config.resizable = false;
    config.foregroundFPS = 60;
    config.backgroundFPS = 60;

    new LwjglApplication(new TypingLabelTest(), config);
}
 
Example 7
Source Project: Skyland   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 1280;
    config.height = 720;
    config.resizable = false;
    new LwjglApplication(new Skyland(), config);
}
 
Example 8
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 9
Source Project: libgdx-2d-tutorial   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main (String[] arg) {
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	config.foregroundFPS = 60;
	config.width = SpaceGame.WIDTH;
	config.height = SpaceGame.HEIGHT;
	config.resizable = true;
	config.addIcon("icon_128.png", FileType.Internal);
	config.addIcon("icon_32.png", FileType.Internal);
	config.addIcon("icon_16.png", FileType.Internal);
	new LwjglApplication(new SpaceGame(), config);
}
 
Example 10
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 11
Source Project: cocos-ui-libgdx   Source File: Runner.java    License: Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    //config.width = DemoGame.GAME_WIDTH;
    // config.height = DemoGame.GAME_HEIGHT;
    //以下作为assetmanager使用
    config.width = 1280;
    config.height = 720;
    new LwjglApplication(new DemoGame(), config);
}
 
Example 12
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 13
Source Project: gdx-pd   Source File: AudioGdxPatchTest.java    License: Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	
	new LwjglApplication(new Game(){
		@Override
		public void create() {
			
			// just play a patch
			Pd.audio.create(new PdConfiguration());
			Pd.audio.open(Gdx.files.local("resources/test.pd"));
			
		}
		
	}, config);
}
 
Example 14
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 15
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 16
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 17
Source Project: Entitas-Java   Source File: MatchOne.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.title = "BASIC";
    config.width = SCREEN_WIDTH;
    config.height = SCREEN_HEIGHT;

    new LwjglApplication(new MatchOne(), config);
}
 
Example 18
Source Project: Entitas-Java   Source File: Examples.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    preferencesManager = new PreferencesManagerGDX();

    config.title = preferencesManager.APP_NAME;
    config.width = preferencesManager.VIRTUAL_DEVICE_WIDTH;
    config.height = preferencesManager.VIRTUAL_DEVICE_HEIGHT;

    new LwjglApplication(new Examples(), config);
}
 
Example 19
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 20
Source Project: riiablo   Source File: DS1Viewer.java    License: Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
  LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
  config.title = "DS1 Viewer";
  config.resizable = true;
  config.width = 1280;
  config.height = 720;
  config.foregroundFPS = config.backgroundFPS = 144;
  DS1Viewer client = new DS1Viewer();
  new LwjglApplication(client, config);
}
 
Example 21
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 22
Source Project: riiablo   Source File: FontMetricsTool.java    License: Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
  LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
  config.title = TAG;
  config.resizable = true;
  config.width = 800;
  config.height = 600;
  config.foregroundFPS = config.backgroundFPS = 144;
  new LwjglApplication(new FontMetricsTool(args[0], args[1]), config);
}
 
Example 23
Source Project: riiablo   Source File: AnimationTool.java    License: Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
  LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
  config.title = TAG;
  config.resizable = true;
  config.width = 256;
  config.height = 384;
  config.vSyncEnabled = false;
  config.foregroundFPS = config.backgroundFPS = 144;
  new LwjglApplication(new AnimationTool(args[0]), config);
}
 
Example 24
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 25
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 26
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 5 votes vote down vote up
public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 640;
    config.height = 480;

    new LwjglApplication(new GigaGalGame(), config);
}
 
Example 27
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 4 votes vote down vote up
public static void main (String[] arg) {
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	new LwjglApplication(new GigaGalGame(), config);
}
 
Example 28
Source Project: ud405   Source File: DesktopLauncher.java    License: MIT License 4 votes vote down vote up
public static void main (String[] arg) {
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	new LwjglApplication(new ReciprocatingMotion(), config);
}
 
Example 29
Source Project: talos   Source File: ParticleControlTest.java    License: Apache License 2.0 4 votes vote down vote up
public static void main (String[] args) {
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	config.width = 1280;
	config.height = 720;
	new LwjglApplication(new ParticleControlTest(), config);
}
 
Example 30
Source Project: ud406   Source File: DesktopLauncher.java    License: MIT License 4 votes vote down vote up
public static void main (String[] arg) {
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	new LwjglApplication(new GigaGalGame(), config);
}