DEADSOFTWARE

Move items to JSON
[cavedroid.git] / desktop / src / ru / deadsoftware / cavedroid / desktop / DesktopLauncher.java
1 package ru.deadsoftware.cavedroid.desktop;
3 import com.badlogic.gdx.Files;
4 import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
5 import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
6 import ru.deadsoftware.cavedroid.CaveGame;
8 public class DesktopLauncher {
9 public static void main (String[] arg) {
10 LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
11 config.addIcon("icons/icon256.png", Files.FileType.Internal);
12 config.addIcon("icons/icon128.png", Files.FileType.Internal);
13 config.foregroundFPS = 144;
14 config.title = "CaveDroid";
15 config.width = 960;
16 config.height = 540;
18 boolean touch = false;
19 for (String anArg : arg) {
20 if (anArg.equals("--touch")) touch = true;
21 }
22 new LwjglApplication(new CaveGame(System.getProperty("user.home") + "/.cavedroid", touch), config);
23 }
24 }