HyperLap2D icon indicating copy to clipboard operation
HyperLap2D copied to clipboard

[Feature Request] Atlas file in JSON format

Open ambs opened this issue 3 years ago • 3 comments

While I suppose atlas format is somehow standard for some libraries, given HyperLap2D saves everything in JSON, it would be nice if an extra file could be saved in json format. I suppose that to be easy (just serialize the same structure), but as I am not really a Java programmer, not easy for me to help.

ambs avatar Mar 26 '21 18:03 ambs

That's could be hard to do.. Atlas generation is strongly bound to libGDX's TexturePacker, that format is however used in some other environments (for example Spine, they provide docs here). I'm afraid but I don't know if it will ever be possible to change this, unless a new exporting feature is added to TexturePacker itself. Anyway an additional parser to atlas format shouldn't so difficult to do

fgnm avatar Mar 26 '21 18:03 fgnm

Ok, I thought the serialization for the data was done by HyperLap2D. If I write a Java function that reads the atlas and generates a JSON, would that be something you could include in HyperLap, or that isn't something you are considering? I am asking because it will take me some effort to implement that in Java and, if that isn't something you are willing to include, I will do in some other language ;)

ambs avatar Mar 26 '21 18:03 ambs

Having a single output format may be useful, but currently there are more pressing issues to fix, so I'll merge it later :)

fgnm avatar Mar 26 '21 18:03 fgnm