Pyxel Edit Forum Archive
ArchiveFeature requests

Alignment & JSON export

A
Autarc
Aug 11, 2013 at 10:37 am
An alignment helper which shows the relation betweeen a previous selected point and the current position of the cursor could be useful. Even if its just a simple transparent connecting line - it would help for composing the different elements.

Moreover supporting JSON (aside of XML) as another basic export format would be great. Especialy modern browser games created in JavaScript / TypeScript could take leverage of it and parse them natively.

Danik
Aug 11, 2013 at 10:58 am
Yes, maybe. It could be used to draw parallel lines too.

JSON support would be nice, I'm using JSON as the internal storage format for .pyxel documents so adding that should be straightforward.
T
tacoe
Aug 13, 2013 at 1:51 pm
+1 for JSON export. Right now we use the plaintext since the XML is so unwieldy, but it doesn't have all the info. Do people even use XML anymore these days? :)

Danik
Aug 13, 2013 at 3:34 pm
Okay, I will try to add JSON support soon. Maybe for the first release, but I can't promise.
Z
zenmumbler
Sep 8, 2013 at 4:07 pm
The JSON format is rather XML-y right now. Instead of {"0":{…}, "1":{…}} you can use an array instead [{…},{…}]

As in the XML filtering thread, here too a sparse export would be helpful, i.e. not exporting empty tiles and/or leaving out default attribute values.
Danik
Sep 8, 2013 at 8:38 pm
Yeah, maybe I should change it to an array. I think I will make sparse export an option, because I think it might complicate import a bit for some. It wouldn't work to export sparse tile indices as an array though since you lose the position information, and I want to keep things consistent. I'll have to think about it.