Gaurav0 / Universal-LPC-Spritesheet-Character-Generator

Character Generator based on Universal-LPC-Spritesheet
http://gaurav.munjal.us/Universal-LPC-Spritesheet-Character-Generator
GNU General Public License v3.0
445 stars 339 forks source link

Add json generation #13

Open ghost opened 8 years ago

ghost commented 8 years ago

I added a simple json animations generation.

The json format is the one used by:

I'm also going to write an animation loader for phaser.io for this format.

Sample here: https://github.com/devnewton/newton_adventure/blob/master/game/data/default_level_data/bat.json

Gaurav0 commented 8 years ago

Hi. Thanks for the contribution. This would be a very cool addition.

Is this a standard format? If so, please provide a link to the specification(s).

I would request that you please update the README and provide a link to instructions on precisely how to use the resulting JSON in a game. Also provide a link "How to use" next to the save as JSON in the html file.

Thank you, Gaurav

ghost commented 8 years ago

Hello,

It's not an ISO/ANSI/... standard, but I will add some documentation.

I also wrote an xml exporter using Starling Texture Atlas format which is pretty popular (Starling, Phaser, Texture Packer...) and already has a nice documentation: http://doc.starling-framework.org/current/starling/textures/TextureAtlas.html

SushilShrestha commented 4 years ago

This sounds interesting. Any updates on this one ?