Skip to content

Add LDtk level map parser to korge fleks gradle plugin#2355

Merged
jobe-m merged 17 commits intomainfrom
feature/Add-ldtk-level-map-parser-to-korge-fleks-gradle-plugin
Feb 16, 2026
Merged

Add LDtk level map parser to korge fleks gradle plugin#2355
jobe-m merged 17 commits intomainfrom
feature/Add-ldtk-level-map-parser-to-korge-fleks-gradle-plugin

Conversation

@jobe-m
Copy link
Member

@jobe-m 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.

@augmentcode
Copy link

augmentcode bot commented Feb 15, 2026

🤖 Augment PR Summary

Summary: 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:

  • Adds a tileMaps section to asset metadata and emits metadata as assets.json (configurable via assetInfoName).
  • Refactors world-cluster asset tasks to queue tileset/LDtk inputs, run exporters, then build texture+tileset atlases and write metadata.
  • Reworks AssetLevelMapExporter to export stacked tile maps and chunked world map JSON files under level_data/.
  • Encodes chunk neighbor relationships for GridVania-like worlds and serializes entities + auto-spawn lists per chunk.
  • Updates tileset atlas builder to accept a fixed amountOfTiles and adjusts how empty frames are represented.
  • Updates Gradle DSL APIs (worldClusterAssets signature, adds worldLevelMapAssets with config block).
  • Adjusts LDtk test resources and updates unit tests to use the new exporter constructor and TILE_MAPS output.

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 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 5 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@jobe-m
Copy link
Member Author

jobe-m commented Feb 16, 2026

augment review

@jobe-m jobe-m merged commit 42e448b into main Feb 16, 2026
6 checks passed
@jobe-m jobe-m deleted the feature/Add-ldtk-level-map-parser-to-korge-fleks-gradle-plugin branch February 16, 2026 19:35
Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 5 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant