[0.8.0] New IntGrid CSV format in Json #358
Labels
for API devs
This tag will indicate issues that contain important info for devs who work on LDtk importers.
Json
Milestone
TLDR;
Starting with 0.8 update, IntGrid layer data in Json will use a much more simple CSV format, in a new field called
intGridCsv
.The previous field (
intGrid
) will be dropped on version 0.10.0 and later.Breaking JSON change in 0.8.0
New JSON field
The following array was added In
levels
>layerInstances
:What are the differences?
intGridCsv
is an array of all values in the IntGrid layer, stored from left to right, and top to bottom.__cWid
*__cHei
.Previous format:
Backward compatibility
The old
intGrid
JSON field can still be exported for back-compatibility purpose since LDtk hits version 0.10.0. This old field works entirely as before (-1 is empty, 0+ are values).To enable this legacy export, open Project panel (
F1
), reveal Advanced Options at the bottom and enable this advanced option:The text was updated successfully, but these errors were encountered: