DEADSOFTWARE

Add icon on desktop
authorfred-boy <fred-boy@protonmail.com>
Sat, 21 Apr 2018 19:56:57 +0000 (02:56 +0700)
committerfred-boy <fred-boy@protonmail.com>
Sat, 21 Apr 2018 19:56:57 +0000 (02:56 +0700)
android/assets/icons/icon128.png [new file with mode: 0644]
android/assets/icons/icon16.png [new file with mode: 0644]
android/assets/icons/icon32.png [new file with mode: 0644]
desktop/src/ru/deadsoftware/cavecraft/desktop/DesktopLauncher.java

diff --git a/android/assets/icons/icon128.png b/android/assets/icons/icon128.png
new file mode 100644 (file)
index 0000000..7f15a2d
Binary files /dev/null and b/android/assets/icons/icon128.png differ
diff --git a/android/assets/icons/icon16.png b/android/assets/icons/icon16.png
new file mode 100644 (file)
index 0000000..4fe56a5
Binary files /dev/null and b/android/assets/icons/icon16.png differ
diff --git a/android/assets/icons/icon32.png b/android/assets/icons/icon32.png
new file mode 100644 (file)
index 0000000..30a3eca
Binary files /dev/null and b/android/assets/icons/icon32.png differ
index e640ebb3f436a6e84b45ab428846fde3c88805ef..533b65dabb2906803b8643d68f2584bda845ff50 100644 (file)
@@ -1,5 +1,6 @@
 package ru.deadsoftware.cavecraft.desktop;
 
+import com.badlogic.gdx.Files;
 import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
 import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
 import ru.deadsoftware.cavecraft.CaveGame;
@@ -7,6 +8,9 @@ import ru.deadsoftware.cavecraft.CaveGame;
 public class DesktopLauncher {
        public static void main (String[] arg) {
                LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
+               config.addIcon("icons/icon128.png", Files.FileType.Internal);
+               config.addIcon("icons/icon32.png", Files.FileType.Internal);
+               config.addIcon("icons/icon16.png", Files.FileType.Internal);
                config.foregroundFPS = 60;
                config.title = "CaveCraft";
                config.width = 960;