Add LDtk level map parser to korge fleks gradle plugin#2355
Merged
Conversation
Member
jobe-m
commented
Feb 15, 2026
- This commit adds support of loading level maps from LDtk level map editor as either Tilemap object or as a chunk-mesh of level maps which are used for world level maps in Korge-fleks.
- When loading level maps as chunk-meshes entities will be parsed and prepared to be auto-spawned in the related world chunk.
- A level map of a world chunk consists of a stacked tile map which contains specific layers of each level map from LDtk editor.
🤖 Augment PR SummarySummary: Adds LDtk level-map parsing/export to the Korge Fleks Gradle plugin to support both per-level TileMap exports and chunked world level-map generation. Changes:
Technical Notes: Exported world chunks are written as compact JSON and tile IDs are bit-packed to include a small cluster index plus a masked tile id. 🤖 Was this summary useful? React with 👍 or 👎 |
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetLevelMapExporter.kt
Outdated
Show resolved
Hide resolved
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetLevelMapExporter.kt
Outdated
Show resolved
Hide resolved
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetLevelMapExporter.kt
Show resolved
Hide resolved
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetLevelMapExporter.kt
Outdated
Show resolved
Hide resolved
...-gradle-plugin/src/test/kotlin/korlibs/korge/gradle/korgefleks/AssetTileMapLDtkLoaderTest.kt
Show resolved
Hide resolved
Member
Author
|
augment review |
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetConfig.kt
Show resolved
Hide resolved
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetLevelMapExporter.kt
Show resolved
Hide resolved
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetLevelMapExporter.kt
Show resolved
Hide resolved
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetLevelMapExporter.kt
Show resolved
Hide resolved
korge-gradle-plugin/src/main/kotlin/korlibs/korge/gradle/korgefleks/AssetTilesetAtlasBuilder.kt
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.