Skip to content
프로젝트

소개

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.

게임 및 에뮬레이션

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Logo

License build Download Kotlin

Requires JDK 25+ in order to use due to the usage of the new Java FFM API.

Currently, in development.

Features - Docs - Examples - Showcase - Changelog - Starter Project

A 2D game framework written in Kotlin

LittleKt (Little Kotlin) is a Kotlin multiplatform 2D game development framework based on WebGPU that is inspired by libGDX and KorGE. The goal of this project is to allow the freedom and flexibility that libGDX offers with enjoyable idiomatic features coded in Kotlin that KorGE has to offer.

Check out some planned features

If you are looking for the OpenGL version, check out this branch. Note: this branch is deprecated.

Install

LittleKt releases are hosted on Maven Central and can be installed like so:

build.gradle.kts:

repositories {
    mavenCentral()
}

kotlin {
    jvm {
        compilerOptions { jvmTarget = JvmTarget.JVM_25 }
    }
}

val littleKtVersion = "0.12.0" // get the latest release at the top
val kotlinCoroutinesVersion = "1.9.0" // or whatever version you are using

sourceSets {
    val commonMain by getting {
        dependencies {
            implementation("com.littlekt:core:$littleKtVersion")
            implementation("com.littlekt:scene-graph:$littleKtVersion") // optional scene-graph module
            implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion")  // littlekt requires coroutines library on the classpath
        }
    }
}

Snapshots

On every build a snapshot gets created. If you want to be on the bleeding edge then you can pull from the snapshot repo. The snapshot versioning uses commit hashes as a suffix. The version convention looks like so: x.x.x.hash-SNAPSHOT. E.g 0.2.1.080b1ad-SNAPSHOT. Note: this will most likely cause breaking changes

build.gradle.kts:

repositories {
    maven(url = "https://central.sonatype.com/repository/maven-snapshots/")
}

kotlin {
    compilerOptions { jvmTarget = JvmTarget.JVM_25 }
}

val littleKtVersion = "0.12.0.131d453-SNAPSHOT" // or whichever hash you are using
val kotlinCoroutinesVersion = "1.9.0" // or whatever version you are using

sourceSets {
    val commonMain by getting {
        dependencies {
            implementation("com.littlekt:core:$littleKtVersion")
            implementation("com.littlekt:scene-graph:$littleKtVersion") // optional scene-graph module
            implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion")  // littlekt requires coroutines library on the classpath
        }
    }
}

Current targets

Platform Support Implementation Expected By
Desktop (JVM) ✅ wgpu-native via FFM Current version
Web (JS) ✅ webgpu Current version
Android In Progress Planned: wgpu-native via JNI v1.0
iOS / Native Planned Planned: wgpu-native v1.0

Showcase

Real world examples instead of the samples' repo.

Glutton for Punishment

Source - Play

gif

Acknowledgements

LittleKt was put together based on bits and pieces of features found across multiple engines/frameworks and languages that were very enjoyable to use and flexible. If a piece a code looks familiar, feel free to open an issue with details, so that we can properly attribute the code.

A big thanks to the folks over on libGDX and KTX, KorGE, and MiniGDX.

The very popular and amazing libGDX which is the main inspiration of this framework as well as the Kotlin framework KTX for the clever and awesome utilites and extensions built on top of libGDX.

Carlos Velasco's (soywiz) awesome Kotlin game engine KorGE which has a bunch of very enjoyable features and awesome ideas that were brought over to be used in LittleKt.

Max Thiele's (fabmax) incredible Kotlin OpenGL/Vulkan graphics engine kool where many features were shamelessly copied and brought over as well which helped get many graphics related features working and allowed me to understand how it worked.

David Wursteisen's excellent multiplatform game framework MiniGDX that allowed LittleKt to get up and running quickly.

관련 프로젝트 살펴보기

불러오는 중…