Initial LibGDX project scaffold for ArtLegend
Multi-module Gradle setup targeting Android (S-Pen) and Desktop (Wacom/LWJGL3). Includes core game stub, Android launcher with immersive mode, and desktop launcher. Asset directory shared across platforms. Gradle 8.6, Kotlin 1.9.23, LibGDX 1.12.1.
This commit is contained in:
28
desktop/build.gradle.kts
Normal file
28
desktop/build.gradle.kts
Normal file
@@ -0,0 +1,28 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
application
|
||||
}
|
||||
|
||||
val gdxVersion: String by project
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core"))
|
||||
implementation("com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion")
|
||||
implementation("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("com.artlegend.DesktopLauncherKt")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(17)
|
||||
}
|
||||
|
||||
tasks.withType<Jar> {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
manifest {
|
||||
attributes["Main-Class"] = "com.artlegend.DesktopLauncherKt"
|
||||
}
|
||||
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
|
||||
}
|
||||
14
desktop/src/main/kotlin/com/artlegend/DesktopLauncher.kt
Normal file
14
desktop/src/main/kotlin/com/artlegend/DesktopLauncher.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.artlegend
|
||||
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
|
||||
|
||||
fun main() {
|
||||
val config = Lwjgl3ApplicationConfiguration().apply {
|
||||
setTitle("ArtLegend")
|
||||
setWindowedMode(1280, 800)
|
||||
setForegroundFPS(60)
|
||||
useVsync(true)
|
||||
}
|
||||
Lwjgl3Application(ArtLegend(), config)
|
||||
}
|
||||
Reference in New Issue
Block a user