
Small, fast 2D game engine with ECS, single-draw sprite rendering via vertex-pulled quads, fixed-timestep physics, collisions, audio, scene stack, Gradle packaging and benchmarks.
Make games in Kotlin. klyph is a small, fast 2D game engine. Your game compiles to a native program for Windows, macOS and Linux, with no JVM and nothing extra to install.
| Rooftop Roller | Bug Squish | Shooter |
|---|---|---|
![]() |
![]() |
![]() |
import klyph.app.AppConfig
import klyph.app.Phase
import klyph.app.runApp
import klyph.platform.Scancode
fun main() {
runApp(AppConfig(title = "My game", width = 1280, height = 720)) {
addSystem(Phase.INPUT) { app ->
if (app.input.keyboard.isJustPressed(Scancode.ESCAPE)) app.quit()
}
}
}The whole build file is three lines:
plugins { id("com.eventslooped.klyph") version "1.2.0" }
klyph { entryPoint = "mygame.main" }
kotlin { sourceSets.nativeMain.dependencies { implementation("com.eventslooped.klyph:klyph:1.2.0") } }./gradlew run plays it. ./gradlew distribute zips it with SDL3 for your players. The
quickest start is klyph-template: press "Use this
template" and you have a window, a ship that flies, and CI on three desktops.
-Pklyph.autopilot=1.On an Apple M4 Pro, 100,000 moving sprites draw in 2.5 ms a frame and 100,000 particles in 2.4 ms, through the full game loop. BENCHMARKS.md has the numbers and the method.
klyph 1.0 is out, and code you write for it keeps working in every 1.x release. The one
exception is the SDL and GPU plumbing marked @KlyphPlatformApi, which a game never needs.
Changes are listed in CHANGELOG.md.
Issues and pull requests are welcome. CONTRIBUTING.md covers building the repository, the tests, the samples and the benchmarks, and the ideas for what comes after 1.0 are the issues labelled post-1.0.
Make games in Kotlin. klyph is a small, fast 2D game engine. Your game compiles to a native program for Windows, macOS and Linux, with no JVM and nothing extra to install.
| Rooftop Roller | Bug Squish | Shooter |
|---|---|---|
![]() |
![]() |
![]() |
import klyph.app.AppConfig
import klyph.app.Phase
import klyph.app.runApp
import klyph.platform.Scancode
fun main() {
runApp(AppConfig(title = "My game", width = 1280, height = 720)) {
addSystem(Phase.INPUT) { app ->
if (app.input.keyboard.isJustPressed(Scancode.ESCAPE)) app.quit()
}
}
}The whole build file is three lines:
plugins { id("com.eventslooped.klyph") version "1.2.0" }
klyph { entryPoint = "mygame.main" }
kotlin { sourceSets.nativeMain.dependencies { implementation("com.eventslooped.klyph:klyph:1.2.0") } }./gradlew run plays it. ./gradlew distribute zips it with SDL3 for your players. The
quickest start is klyph-template: press "Use this
template" and you have a window, a ship that flies, and CI on three desktops.
-Pklyph.autopilot=1.On an Apple M4 Pro, 100,000 moving sprites draw in 2.5 ms a frame and 100,000 particles in 2.4 ms, through the full game loop. BENCHMARKS.md has the numbers and the method.
klyph 1.0 is out, and code you write for it keeps working in every 1.x release. The one
exception is the SDL and GPU plumbing marked @KlyphPlatformApi, which a game never needs.
Changes are listed in CHANGELOG.md.
Issues and pull requests are welcome. CONTRIBUTING.md covers building the repository, the tests, the samples and the benchmarks, and the ideas for what comes after 1.0 are the issues labelled post-1.0.