deepnight / ldtk

Modern, lightweight and efficient 2D level editor
https://ldtk.io
MIT License
3.43k stars 191 forks source link

LDtk rendering [question] #993

Open Tsunami014 opened 1 year ago

Tsunami014 commented 1 year ago

I was wondering; Does LDtk have some way I can render a file without having to open LDtk? I need it for a project in Python where I automatically generate the intGridCSV for a bunch of levels and I need to get something (maybe some code, maybe some part of the source code for LDtk, maybe some way of calling the exe file) to get the file to be rendered so it can use the 'autoLayerTiles' part of the level to show on the screen. I know that you can use

path/to/ldtk/LDtk.exe "filename.ldtk"

To open LDtk to that file, is there any way you can do this without even opening LDtk, just saving? Or is there some files in the source code that I can do the same on? And also, is there some way I can make it portable (e.g. copy those files onto a USB so you don't need LDtk installed?) Or will I have to make something myself? Thanks!

deepnight commented 10 months ago

Hi, There's no such tool in LDtk, but I think other users have created external tools to export world PNGs for example. You may want to ask on the Discord :)

https://ldtk.io/go/discord