use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Entitas-Java by Rubentxu.
the class Pong method main.
public static void main(String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.title = "BASIC";
config.width = SCREEN_WIDTH;
config.height = SCREEN_HEIGHT;
new LwjglApplication(new Pong(), config);
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project AmazingMaze by TheVirtualMachine.
the class DesktopLauncher method main.
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;
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);
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Catacomb-Snatch by Catacomb-Snatch.
the class DesktopLauncher method main.
public static void main(String[] arg) {
System.out.println("Starting game in DESKTOP mode!");
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
// TODO Re-enable if it got fixed on all systems (currently throws a shader error)
// config.useGL30 = true;
config.title = "Catacomb Snatch";
config.width = GAME_WIDTH;
config.height = GAME_HEIGHT;
new LwjglApplication(new CatacombSnatch(new PlatformDependent() {
@Override
public void create() {
// Set game cursor
try {
int size = 16, center = (size / 2);
IntBuffer buffer = BufferUtils.newIntBuffer(size * size);
int x = 0, y = 0;
for (int n = 0; n < buffer.limit(); n++) {
if ((x == center || y == center) && (x < center - 1 || y < center - 1 || x > center + 1 || y > center + 1)) {
buffer = buffer.put(n, 0xFFFFFFFF);
}
x++;
if (x == size) {
x = 0;
y++;
}
}
Mouse.setNativeCursor(new Cursor(size, size, center, center, 1, buffer, null));
} catch (LWJGLException e) {
System.err.print("Error setting native cursor!\n" + e);
}
}
@Override
public Object[] createPlatformObjects() {
throw new UnsupportedOperationException("Unimplemented");
}
@Override
public void dispose() {
}
}), config);
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Alkahest-Coffee by AlkahestDev.
the class ServerDesktop method main.
public static void main(String[] args) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
new LwjglApplication(new CoffeeServer(), config);
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project bdx by GoranM.
the class DesktopLauncher method main.
public static void main(String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.title = "Project Name";
config.width = 666;
config.height = 444;
new LwjglApplication(new BdxApp(), config);
}
Aggregations