Closed fractalbach closed 6 years ago
change the way layers are defined. Shouldn't be an array, should be a named object like "ground" or "above Player". Something flexible.
before:
{ "data": [ [[1]], [[2]] ] }
after:
{ "data": { "ground": [[1]], "above": [[2]] } }
Then, fix it in the way it's decoded.
closing for now because this isn't necessarily better, and it works fine right now.
change the way layers are defined. Shouldn't be an array, should be a named object like "ground" or "above Player". Something flexible.
before:
after:
Then, fix it in the way it's decoded.