tilemap icon indicating copy to clipboard operation
tilemap copied to clipboard

LDtk Json support

Open Silver-Streak opened this issue 3 years ago • 4 comments

The Level Designer Toolkit (formerly LE-D) is a fantastic new(ish) Tilemap editor from some of the people behind Dead Cells.

While it can currently output Tiled TMX files, the app does have it's own JSON format, documented here: https://ldtk.io/json/

Would there ever be any consideration in adding support for this JSON format?

Full disclosure: I'm interested in this to help future enhancement with the GDevelop 5 project. They just recently integrated Pixi-tilemap as their tilemap support for the engine, and while they have interest in LDtk as the tilemap editor of choice, it would require them to build out something that translates the LDtk format to Tiled format to be interpreted by Pixi-tilemap. Having native support for the LDtk format would skip a lot of steps, if not also expand compatibility in general.

Silver-Streak avatar Feb 03 '21 04:02 Silver-Streak

The problem is that pixi-tilemap doesnt support formats per-se. what you can do is a demo where its used with this format and i post it here. tilemap itself is low-level thing

ivanpopelyshev avatar Feb 03 '21 08:02 ivanpopelyshev

Hey @ivanpopelyshev thanks for the quick response. Just to confirm, you would like me to make a tilemap json in LDtk and post it here? (I can also get the exact same tilemap converted over to Tiled TMX and then Tiled JSON in tiled, to show comparison).

Silver-Streak avatar Feb 03 '21 13:02 Silver-Streak

We plan to write a parser for gdevelop to do this bit and then pass it to pixi-tilemap to render. It will likely be added to the existing tiled json parser in https://github.com/4ian/GDevelop/blob/master/Extensions/TileMap/pixi-tilemap-helper.js

blurymind avatar Feb 09 '21 20:02 blurymind

Hey @Silver-Streak @blurymind did you upgrade to @pixi/tilemap 3? It should have better typings + cleaner API.

ShukantPal avatar Mar 14 '21 19:03 ShukantPal