Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Atlas file in JSON format #42

Open
ambs opened this issue Mar 26, 2021 · 3 comments
Open

[Feature Request] Atlas file in JSON format #42

ambs opened this issue Mar 26, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@ambs
Copy link

ambs commented Mar 26, 2021

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.

@fgnm
Copy link
Member

fgnm commented Mar 26, 2021

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

@ambs
Copy link
Author

ambs commented Mar 26, 2021

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 ;)

@fgnm
Copy link
Member

fgnm commented Mar 26, 2021

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

@fgnm fgnm added the enhancement New feature or request label Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants