deepnight / ldtk

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

Feature Request: Import CSV File to Intgrid Layer #423

Open dmliao opened 3 years ago

dmliao commented 3 years ago

Internally, LDTK is representing Intgrid layers as CSV integer arrays in the intGridCSV field in JSON. I'd like to be able to have an Intgrid layer import an external .csv file and populate the layer based on the file's values. This would allow me to use an external program that could generate basic scaffolding for levels, save them as .csv files, and then bring them into LDTK for me to add entities, or connect them as levels, etc.

(The overarching problem I'm trying to solve is 'how can I procedurally generate levels that can then be edited in LDTK?' Maybe there are better ways to approach this!)

deepnight commented 3 years ago

That's a very interesting idea :) I'll have a look!