Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDtk Json support #109

Open
Silver-Streak opened this issue Feb 3, 2021 · 4 comments
Open

LDtk Json support #109

Silver-Streak opened this issue Feb 3, 2021 · 4 comments

Comments

@Silver-Streak
Copy link

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.

@ivanpopelyshev
Copy link
Collaborator

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

@Silver-Streak
Copy link
Author

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).

@blurymind
Copy link
Contributor

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

@ShukantPal
Copy link
Member

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

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

No branches or pull requests

4 participants