DEADSOFTWARE

Add item in player's hand
[cavedroid.git] / desktop / src / ru / deadsoftware / cavecraft / desktop / DesktopLauncher.java
index 03ddd69ce5358abd94b7da26203e8775c4eff51d..470584b238ee39b21f7cb10faab628e97fb4c6e4 100644 (file)
@@ -14,6 +14,11 @@ public class DesktopLauncher {
                config.title = "CaveCraft";
                config.width = 960;
                config.height = 540;
-               new LwjglApplication(new CaveGame(), config);
+
+                boolean touch = false;
+                for (int i=0; i<arg.length; i++) {
+                    if (arg[i].equals("--touch")) touch = true;
+                }
+               new LwjglApplication(new CaveGame(touch), config);
        }
 }