package kz.ilotterytea.maxon; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.Texture; import kz.ilotterytea.javaextra.tuples.Triple; import kz.ilotterytea.maxon.utils.OsUtils; import java.text.DecimalFormat; import java.util.Arrays; import java.util.List; public class MaxonConstants { public static final String GAME_NAME = "Maxon Petting Simulator"; public static final String GAME_APP_ID = "maxon"; public static final String GAME_APP_PACKAGE = "kz.ilotterytea." + GAME_APP_ID; public static final String GAME_APP_URL; public static final String GAME_VERSION = "1.0.1"; public static final Integer GAME_PROTOCOL = 1; public static final String GAME_MAIN_DEVELOPER = "ilotterytea"; public static final List> GAME_DEVELOPERS = Arrays.asList( new Triple<>("m4x0nn", "https://twitch.tv/m4x0nn", 0), new Triple<>("ilotterytea", "https://ilotterytea.kz", 1), new Triple<>("GreDDySS", "https://twitch.tv/greddyss", 2), new Triple<>("enotEGG_", "https://twitch.tv/enotegg_", 2), new Triple<>("NameIsNamesake", "https://twitter.com/nameisnamesake", 3), new Triple<>("saopin_", "https://soundcloud.com/saopin", 3), new Triple<>("Gvardovskiy", "https://twitch.tv/gvardovskiy", 4), new Triple<>("4elovekkun", "https://twitch.tv/4elovekkun", 5), new Triple<>("Art5507", "https://twitch.tv/art5507", 5), new Triple<>("GigovichGig", "https://twitch.tv/gigovichgig", 5), new Triple<>("IIReZortII", "https://twitch.tv/iirezortii", 5), new Triple<>("drt_s_s", "https://twitch.tv/drt_s_s", 5), new Triple<>("felugoz", "https://twitch.tv/felugoz", 5), new Triple<>("iQweep", "https://twitch.tv/iqweep", 6), new Triple<>("neizyum", "https://twitch.tv/neizyum", 5), new Triple<>("rbch20", "https://twitch.tv/rbch20", 5), new Triple<>("rey_ron_ro", "https://twitch.tv/rey_ron_ro", 5), new Triple<>("shvedoff__", "https://twitch.tv/shvedoff__", 5), new Triple<>("usatiy_", "https://twitch.tv/usatiy_", 5), new Triple<>("vexenigmus", "https://twitch.tv/vexenigmus", 5), new Triple<>("wanderning_", "https://twitch.tv/wanderning_", 5) ); public static final String GAME_MAIN_FOLDER = OsUtils.getUserDataDirectory(GAME_MAIN_DEVELOPER + "/" + GAME_APP_ID); public static final String GAME_SCREENSHOT_FOLDER = GAME_MAIN_FOLDER + "/screenshots"; public static final String GAME_SAVEGAME_FOLDER = GAME_MAIN_FOLDER + "/savegames"; public static final FileHandle FILE_EN_US = Gdx.files.internal("i18n/en_us.json"); public static final FileHandle FILE_RU_RU = Gdx.files.internal("i18n/ru_ru.json"); public static final DecimalFormat DECIMAL_FORMAT = new DecimalFormat("###,###.#"); public static final DecimalFormat DECIMAL_FORMAT2 = new DecimalFormat("###,###"); public static final String GAME_VERSIONS_FILE_URL = "https://assets.ilotterytea.kz/maxon/versions.json"; public static final String IDENTITY_BASE_URL = "https://id.ilotterytea.kz"; public static final String IDENTITY_INVALIDATE_URL = IDENTITY_BASE_URL + "/invalidate"; public static final String IDENTITY_VALIDATE_URL = IDENTITY_BASE_URL + "/validate"; public static final String IDENTITY_REFRESH_URL = IDENTITY_BASE_URL + "/refresh"; public static final String IDENTITY_AUTHENTICATION_URL = IDENTITY_BASE_URL + "/authenticate"; public static final String IDENTITY_REGISTRATION_URL = IDENTITY_BASE_URL; public static final long DISCORD_APPLICATION_ID = 1051092609659052062L; public static final Texture MISSING_TEXTURE; static { Pixmap pixmap = new Pixmap(4, 4, Pixmap.Format.RGBA8888); int checkers = 2; int tileSize = pixmap.getWidth() / checkers; for (int y = 0; y < checkers; y++) { for (int x = 0; x < checkers; x++) { if ((x + y) % 2 == 0) { pixmap.setColor(Color.MAGENTA); } else { pixmap.setColor(Color.BLACK); } pixmap.fillRectangle(x * tileSize, y * tileSize, tileSize, tileSize); } } MISSING_TEXTURE = new Texture(pixmap); pixmap.dispose(); if (OsUtils.isAndroid) { GAME_APP_URL = "https://play.google.com/store/apps/details?id=kz.ilotterytea.maxon"; } else { GAME_APP_URL = "https://ilotterytea.itch.io/maxon"; } } }