+++ /dev/null
-../assets
\ No newline at end of file
+++ /dev/null
-buildscript {
- configurations { natives }
-}
-
-plugins {
- id "com.android.application"
- id "kotlin-android"
-}
-
-def keystorePropertiesFile = rootProject.file("keystore.properties")
-def keystoreProperties = new Properties()
-keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-
-android {
- namespace "ru.deadsoftware.cavedroid"
- compileSdkVersion 34
- sourceSets {
- main {
- manifest.srcFile 'AndroidManifest.xml'
- java.srcDirs = ['src']
- aidl.srcDirs = ['src']
- renderscript.srcDirs = ['src']
- res.srcDirs = ['res']
- assets.srcDirs = ['assets']
- jniLibs.srcDirs = ['libs']
- }
- debug {
- res.srcDirs = ['debug/res']
- }
- }
- compileOptions {
- sourceCompatibility 17
- targetCompatibility 17
- }
- packagingOptions {
- exclude 'META-INF/robovm/ios/robovm.xml'
- }
- defaultConfig {
- applicationId "ru.deadsoftware.cavedroid"
- minSdkVersion 19
- targetSdkVersion 34
- versionCode 25
- versionName "alpha0.9.2"
-
- multiDexEnabled true
- }
- applicationVariants.all { variant ->
- variant.outputs.all {
- outputFileName = "android-${versionName}.apk"
- }
- }
-
- signingConfigs {
- release_config {
- storeFile file(keystoreProperties['releaseKeystorePath'])
- storePassword keystoreProperties['releaseKeystorePassword']
- keyAlias keystoreProperties['releaseKeyAlias']
- keyPassword keystoreProperties['releaseKeyPassword']
- }
- }
-
- buildTypes {
- release {
- minifyEnabled false
- signingConfig signingConfigs.release_config
- }
- debug {
- applicationIdSuffix ".debug"
- }
- }
- buildFeatures {
- buildConfig true
- }
-
-}
-
-
-// called every time gradle gets executed, takes the native dependencies of
-// the natives configuration, and extracts them to the proper libs/ folders
-// so they get packed with the APK.
-task copyAndroidNatives {
- doFirst {
- file("libs/armeabi/").mkdirs()
- file("libs/armeabi-v7a/").mkdirs()
- file("libs/arm64-v8a/").mkdirs()
- file("libs/x86_64/").mkdirs()
- file("libs/x86/").mkdirs()
-
- configurations.natives.files.each { jar ->
- def outputDir = null
- if (jar.name.endsWith("natives-arm64-v8a.jar")) outputDir = file("libs/arm64-v8a")
- if (jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a")
- if(jar.name.endsWith("natives-armeabi.jar")) outputDir = file("libs/armeabi")
- if(jar.name.endsWith("natives-x86_64.jar")) outputDir = file("libs/x86_64")
- if(jar.name.endsWith("natives-x86.jar")) outputDir = file("libs/x86")
- if(outputDir != null) {
- copy {
- from zipTree(jar)
- into outputDir
- include "*.so"
- }
- }
- }
- }
-}
-
-tasks.whenTaskAdded { packageTask ->
- if (packageTask.name.contains("package")) {
- packageTask.dependsOn 'copyAndroidNatives'
- }
-}
-
-task run(type: Exec) {
- def path
- def localProperties = project.file("../local.properties")
- if (localProperties.exists()) {
- Properties properties = new Properties()
- localProperties.withInputStream { instr ->
- properties.load(instr)
- }
- def sdkDir = properties.getProperty('sdk.dir')
- if (sdkDir) {
- path = sdkDir
- } else {
- path = "$System.env.ANDROID_HOME"
- }
- } else {
- path = "$System.env.ANDROID_HOME"
- }
-
- def adb = path + "/platform-tools/adb"
- commandLine "$adb", 'shell', 'am', 'start', '-n', 'ru.deadsoftware.cavedroid/ru.deadsoftware.cavedroid.AndroidLauncher'
-}
-
-dependencies {
- implementation project(":core")
- implementation platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion")
- api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
- natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
- natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
- natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
- natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
-
- configurations.implementation {
- exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
- }
-}
\ No newline at end of file
--- /dev/null
+import java.io.FileInputStream
+import java.util.Properties
+
+private val natives by configurations.creating
+
+plugins {
+ id("com.android.application")
+ id("kotlin-android")
+}
+
+private val keystorePropertiesFile = rootProject.file("keystore.properties")
+private val keystoreProperties = if (keystorePropertiesFile.exists()) {
+ Properties().apply {
+ load(FileInputStream(keystorePropertiesFile))
+ }
+} else {
+ null
+}
+
+
+android {
+ namespace = ApplicationInfo.packageName
+ compileSdk = 34
+
+ sourceSets {
+
+ named("main") {
+ jniLibs.srcDir("libs")
+ }
+
+ named("debug") {
+ res.srcDir("src/debug/res")
+ }
+
+ }
+
+ compileOptions {
+ sourceCompatibility = ApplicationInfo.sourceCompatibility
+ targetCompatibility = ApplicationInfo.sourceCompatibility
+ }
+
+ defaultConfig {
+ applicationId = ApplicationInfo.packageName
+ minSdk = 19
+ targetSdk = 34
+
+ versionCode = ApplicationInfo.versionCode
+ versionName = ApplicationInfo.versionName
+
+ multiDexEnabled = true
+ }
+
+ applicationVariants.asSequence()
+ .flatMap { variant -> variant.outputs.asSequence() }
+ .mapNotNull { output -> output as? com.android.build.gradle.internal.api.BaseVariantOutputImpl }
+ .forEach { output -> output.outputFileName = "android-${ApplicationInfo.versionName}.apk" }
+
+ val releaseConfig = signingConfigs.create("release_config")
+ with(releaseConfig) {
+ storeFile = keystoreProperties?.get("releaseKeystorePath")?.let(::file)
+ storePassword = keystoreProperties?.get("releaseKeystorePassword")?.toString()
+ keyAlias = keystoreProperties?.get("releaseKeyAlias")?.toString()
+ keyPassword = keystoreProperties?.get("releaseKeyPassword")?.toString()
+ }
+
+ buildTypes {
+ release {
+ isMinifyEnabled = false
+ signingConfig = releaseConfig
+ }
+
+ debug {
+ applicationIdSuffix = ".debug"
+ }
+ }
+
+ buildFeatures {
+ buildConfig = true
+ }
+}
+
+// called every time gradle gets executed, takes the native dependencies of
+// the natives configuration, and extracts them to the proper libs/ folders
+// so they get packed with the APK.
+task("copyAndroidNatives") {
+ doFirst {
+ val armeabiV7Dir = file("libs/armeabi-v7a/").apply { mkdirs() }
+ val arm64Dir = file("libs/arm64-v8a/").apply { mkdirs() }
+ val x86Dir = file("libs/x86/").apply { mkdirs() }
+ val amd64Dir = file("libs/x86_64/").apply { mkdirs() }
+
+ natives.files.forEach { jar ->
+ val outputDir = when {
+ jar.name.endsWith("natives-armeabi-v7a.jar") -> armeabiV7Dir
+ jar.name.endsWith("natives-arm64-v8a.jar") -> arm64Dir
+ jar.name.endsWith("natives-x86.jar") -> x86Dir
+ jar.name.endsWith("natives-x86_64.jar") -> amd64Dir
+ else -> null
+ }
+
+ if (outputDir != null) {
+ copy {
+ from(zipTree(jar))
+ into(outputDir)
+ include("*.so")
+ }
+ }
+ }
+ }
+}
+
+tasks.whenTaskAdded {
+ if (name.contains("package")) {
+ dependsOn("copyAndroidNatives")
+ }
+}
+
+dependencies {
+ implementation((project(":core")))
+ implementation(platform(Dependencies.Kotlin.bom))
+
+ implementation(Dependencies.LibGDX.gdx)
+ implementation(Dependencies.LibGDX.Android.backend)
+
+ natives(Dependencies.LibGDX.Android.Natives.armeabi)
+ natives(Dependencies.LibGDX.Android.Natives.arm64)
+ natives(Dependencies.LibGDX.Android.Natives.x86)
+ natives(Dependencies.LibGDX.Android.Natives.x86_64)
+
+ configurations["implementation"].exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk8")
+}
\ No newline at end of file
+++ /dev/null
-# This file is used by the Eclipse ADT plugin. It is unnecessary for IDEA and Android Studio projects, which
-# configure Proguard and the Android target via the build.gradle file.
-
-# To enable ProGuard to work with Eclipse ADT, uncomment this (available properties: sdk.dir, user.home)
-# and ensure proguard.jar in the Android SDK is up to date (or alternately reduce the android target to 23 or lower):
-# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-rules.pro
-
-# Project target.
-target=android-19
--- /dev/null
+../../../assets
\ No newline at end of file
+++ /dev/null
-buildscript {
- ext {
- appName = "CaveDroid"
-
- gdxVersion = '1.12.0'
-
- guavaVersion = '28.1'
-
- daggerVersion = '2.51.1'
-
- kotlinVersion = '1.9.24'
- kspVersion = '1.9.24-1.0.20'
- kotlinSerializationVersion = '1.6.3'
-
- kotlinpoetKspVersion = '1.16.0'
- }
-
- repositories {
- mavenLocal()
- mavenCentral()
- maven { url "https://plugins.gradle.org/m2/" }
- maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
- google()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:8.2.2'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
- }
-}
-
-allprojects {
- version = 'alpha0.9.2'
-
- repositories {
- mavenLocal()
- mavenCentral()
- google()
- maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
- maven { url "https://oss.sonatype.org/content/repositories/releases/" }
- maven { url "https://jitpack.io" }
- maven { url "https://mvn.fredboy.ru/releases/" }
- }
-}
--- /dev/null
+buildscript {
+ repositories {
+ mavenLocal()
+ mavenCentral()
+ google()
+ maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
+ maven { url = uri("https://oss.sonatype.org/content/repositories/releases/") }
+ maven { url = uri("https://jitpack.io") }
+ maven { url = uri("https://mvn.fredboy.ru/releases/") }
+ }
+
+ dependencies {
+ classpath(Dependencies.androidGradlePlugin)
+ classpath(Dependencies.Kotlin.gradlePlugin)
+ }
+}
+
+allprojects {
+ version = ApplicationInfo.versionName
+
+ repositories {
+ mavenLocal()
+ mavenCentral()
+ google()
+ maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
+ maven { url = uri("https://oss.sonatype.org/content/repositories/releases/") }
+ maven { url = uri("https://jitpack.io") }
+ maven { url = uri("https://mvn.fredboy.ru/releases/") }
+ }
+}
\ No newline at end of file
--- /dev/null
+plugins {
+ `kotlin-dsl`
+}
+
+repositories {
+ mavenCentral()
+}
--- /dev/null
+import org.gradle.api.JavaVersion
+
+object ApplicationInfo {
+ const val name = "CaveDroid"
+ const val versionName = "alpha0.9.2"
+ const val versionCode = 25
+
+ const val packageName = "ru.deadsoftware.cavedroid"
+
+ val sourceCompatibility = JavaVersion.VERSION_17
+}
\ No newline at end of file
--- /dev/null
+object Dependencies {
+
+ object LibGDX {
+ const val gdx = "com.badlogicgames.gdx:gdx:${Versions.gdx}"
+
+ object Android {
+ const val backend = "com.badlogicgames.gdx:gdx-backend-android:${Versions.gdx}"
+
+ object Natives {
+ const val armeabi = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-armeabi-v7a"
+ const val arm64 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-arm64-v8a"
+ const val x86 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-x86"
+ const val x86_64 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-x86_64"
+ }
+ }
+
+ object Desktop {
+ const val backend = "com.badlogicgames.gdx:gdx-backend-lwjgl3:${Versions.gdx}"
+ const val natives = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-desktop"
+ }
+ }
+
+ object Dagger {
+ const val dagger = "com.google.dagger:dagger:${Versions.dagger}"
+ const val compiler = "com.google.dagger:dagger-compiler:${Versions.dagger}"
+ }
+
+ object Kotlin {
+ const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
+ const val bom = "org.jetbrains.kotlin:kotlin-bom:${Versions.kotlin}"
+ const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}"
+
+ object Serialization {
+ const val json = "org.jetbrains.kotlinx:kotlinx-serialization-json:${Versions.kotlinxSerialization}"
+ const val protobuf = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:${Versions.kotlinxSerialization}"
+ }
+ }
+
+ object Automultibind {
+ const val annotations = "ru.fredboy:automultibind-annotations:${Versions.automultibind}"
+ const val ksp = "ru.fredboy:automultibind-ksp:${Versions.automultibind}"
+ }
+
+ const val androidGradlePlugin = "com.android.tools.build:gradle:${Versions.agp}"
+
+ // TODO: Remove after complete kotlin migration
+ const val jetbrainsAnnotations = "org.jetbrains:annotations:${Versions.jetbrainsAnnotations}"
+
+}
\ No newline at end of file
--- /dev/null
+object Versions {
+
+ /**
+ * Android gradle plugin version
+ */
+ const val agp = "8.2.2"
+
+ /**
+ * LibGDX version
+ *
+ * [Source](https://github.com/libgdx/libgdx)
+ */
+ const val gdx = "1.12.0"
+
+ /**
+ * Dagger version
+ *
+ * [Source](https://github.com/google/dagger)
+ */
+ const val dagger = "2.51.1"
+
+ /**
+ * Kotlin version
+ *
+ * [Source](https://github.com/JetBrains/kotlin)
+ */
+ const val kotlin = "1.9.24"
+
+ /**
+ * Kotlinx serialization version
+ *
+ * [Source](https://github.com/Kotlin/kotlinx.serialization/)
+ */
+ const val kotlinxSerialization = "1.6.3"
+
+ /**
+ * Kotlin Symbol Processing version
+ *
+ * [Source](https://github.com/google/ksp)
+ */
+ const val ksp = "1.9.24-1.0.20"
+
+ /**
+ * Kotlin poet version
+ *
+ * [Source](https://github.com/square/kotlinpoet)
+ */
+ const val kotlinPoetKsp = "1.16.0"
+
+ /**
+ * JetBrains annotations version
+ *
+ * [Source](https://github.com/JetBrains/java-annotations)
+ */
+ const val jetbrainsAnnotations = "23.1.0"
+
+ /**
+ * Automultibind version
+ *
+ * [Source](https://github.com/fredboy/automultibind)
+ */
+ const val automultibind = "1.0.0"
+}
\ No newline at end of file
+++ /dev/null
-plugins {
- id "java-library"
- id "org.jetbrains.kotlin.jvm"
- id "kotlin"
- id "idea"
- id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion"
- id 'com.google.devtools.ksp' version "$kspVersion"
-}
-
-java.targetCompatibility = JavaVersion.VERSION_17
-java.sourceCompatibility = JavaVersion.VERSION_17
-
-sourceSets.main.java.srcDirs = ["src/"]
-
-dependencies {
- implementation "ru.fredboy:automultibind-annotations:1.0.0"
- ksp "ru.fredboy:automultibind-ksp:1.0.0"
-
- api "com.badlogicgames.gdx:gdx:$gdxVersion"
- api "com.google.dagger:dagger:$daggerVersion"
- implementation 'org.jetbrains:annotations:23.1.0'
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
- implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion"
- implementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$kotlinSerializationVersion"
- ksp "com.google.dagger:dagger-compiler:$daggerVersion"
-}
--- /dev/null
+plugins {
+ id("java-library")
+ id("org.jetbrains.kotlin.jvm")
+ id("kotlin")
+ id("idea")
+ id("org.jetbrains.kotlin.plugin.serialization") version Versions.kotlin
+ id ("com.google.devtools.ksp") version Versions.ksp
+}
+
+java.sourceCompatibility = ApplicationInfo.sourceCompatibility
+java.targetCompatibility = ApplicationInfo.sourceCompatibility
+
+dependencies {
+ implementation(Dependencies.Automultibind.annotations)
+ ksp(Dependencies.Automultibind.ksp)
+
+ implementation(Dependencies.LibGDX.gdx)
+ implementation(Dependencies.Dagger.dagger)
+
+ implementation(Dependencies.jetbrainsAnnotations)
+ implementation(Dependencies.Kotlin.stdlib)
+ implementation(Dependencies.Kotlin.Serialization.json)
+ implementation(Dependencies.Kotlin.Serialization.protobuf)
+
+ ksp(Dependencies.Dagger.compiler)
+}
\ No newline at end of file
+++ /dev/null
-../assets
\ No newline at end of file
+++ /dev/null
-plugins {
- id 'java-library'
- id 'kotlin'
- id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion"
-}
-
-java.targetCompatibility = JavaVersion.VERSION_17
-java.sourceCompatibility = JavaVersion.VERSION_1_8
-
-sourceSets.main.java.srcDirs = ["src/"]
-sourceSets.main.resources.srcDirs = ["assets/"]
-
-project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
-project.ext.assetsDir = new File("assets/")
-
-task run(dependsOn: build, type: JavaExec) {
- main = project.mainClassName
- classpath = sourceSets.main.runtimeClasspath
- standardInput = System.in
- workingDir = project.assetsDir
- ignoreExitValue = true as JavaExecSpec
- args "--debug"
-}
-
-task runTouch(dependsOn: build, type: JavaExec) {
- main = project.mainClassName
- classpath = sourceSets.main.runtimeClasspath
- standardInput = System.in
- workingDir = project.assetsDir
- ignoreExitValue = true as JavaExecSpec
- args "--touch", "--debug"
-}
-
-task dist(dependsOn: build, type: Jar) {
- duplicatesStrategy = DuplicatesStrategy.EXCLUDE
- manifest {
- attributes 'Main-Class': project.mainClassName
- }
- from {
- configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
- }
- with jar
-}
-
-dependencies {
- implementation project(":core")
- implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion"
- api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
- api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
-}
--- /dev/null
+plugins {
+ id("kotlin")
+}
+
+java.sourceCompatibility = ApplicationInfo.sourceCompatibility
+java.targetCompatibility = ApplicationInfo.sourceCompatibility
+
+private val desktopLauncherClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
+
+tasks.register<JavaExec>("run") {
+ dependsOn("build")
+ mainClass = desktopLauncherClassName
+ classpath = sourceSets["main"].runtimeClasspath
+ workingDir = sourceSets["main"].resources.sourceDirectories.first()
+ args("--debug")
+}
+
+tasks.register<JavaExec>("runTouch") {
+ dependsOn("build")
+ mainClass = desktopLauncherClassName
+ classpath = sourceSets["main"].runtimeClasspath
+ workingDir = sourceSets["main"].resources.sourceDirectories.first()
+ args("--touch", "--debug")
+}
+
+tasks.register<Jar>("dist") {
+ dependsOn("build")
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+ manifest {
+ attributes["Main-Class"] = desktopLauncherClassName
+ }
+ from(configurations.runtimeClasspath.get().resolve().map { it.takeIf(File::isDirectory) ?: zipTree(it) })
+}
+
+dependencies {
+ implementation(project(":core"))
+
+ implementation(Dependencies.LibGDX.gdx)
+ implementation(Dependencies.LibGDX.Desktop.backend)
+ implementation(Dependencies.LibGDX.Desktop.natives)
+}
--- /dev/null
+package ru.deadsoftware.cavedroid.desktop
+
+import com.badlogic.gdx.Files
+import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application
+import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
+import ru.deadsoftware.cavedroid.CaveGame
+
+internal object DesktopLauncher {
+
+ @JvmStatic
+ fun main(arg: Array<String>) {
+ val config = Lwjgl3ApplicationConfiguration()
+
+ with(config) {
+ setWindowIcon(
+ /* fileType = */ Files.FileType.Internal,
+ /* ...filePaths = */ "icons/icon512.png", "icons/icon256.png", "icons/icon128.png"
+ )
+ setTitle("CaveDroid")
+ setWindowedMode(960, 540)
+ useVsync(true)
+ }
+
+ var touch = false
+ var debug = false
+ var assetsPath: String? = null
+
+ for (anArg in arg) {
+ if (anArg == "--touch") {
+ touch = true
+ }
+
+ if (anArg == "--debug") {
+ debug = true
+ }
+
+ if (anArg.startsWith("--assets")) {
+ val splitArg: Array<String> = anArg.split("=".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
+ if (splitArg.size >= 2) {
+ assetsPath = splitArg[1]
+ }
+ }
+ }
+
+ val caveGame = CaveGame(
+ gameDataDirectoryPath = System.getProperty("user.home") + "/.cavedroid",
+ isTouchScreen = touch,
+ isDebug = debug,
+ preferencesStore = DesktopPreferencesStore(),
+ )
+
+ Lwjgl3Application(caveGame, config)
+ }
+}
\ No newline at end of file
--- /dev/null
+../../../assets
\ No newline at end of file
+++ /dev/null
-package ru.deadsoftware.cavedroid.desktop;
-
-import com.badlogic.gdx.Files;
-import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
-import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
-import ru.deadsoftware.cavedroid.CaveGame;
-
-class DesktopLauncher {
- public static void main(String[] arg) {
- Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
- config.setWindowIcon(Files.FileType.Internal,
- "icons/icon512.png", "icons/icon256.png", "icons/icon128.png");
- config.setTitle("CaveDroid");
- config.setWindowedMode(960, 540);
- config.useVsync(true);
-
- boolean touch = false;
- boolean debug = false;
- String assetsPath = null;
-
- for (String anArg : arg) {
- if (anArg.equals("--touch")) {
- touch = true;
- }
-
- if (anArg.equals("--debug")) {
- debug = true;
- }
-
- if (anArg.startsWith("--assets")) {
- String[] splitArg = anArg.split("=");
- if (splitArg.length >= 2) {
- assetsPath = splitArg[1];
- }
- }
- }
-
- CaveGame caveGame = new CaveGame(
- System.getProperty("user.home") + "/.cavedroid",
- touch,
- debug,
- new DesktopPreferencesStore()
- );
-
- new Lwjgl3Application(caveGame, config);
- }
-}
+++ /dev/null
-include 'desktop', 'android', 'core'
-
--- /dev/null
+include("android")
+include("desktop")
+include("core")