litiengine
litiengine copied to clipboard
Support Aseprite export format (.json) for animations
Adds support for importing/exporting animations as json
This adds the functionality of importing and exporting Aseprite formatted .json files.
Import
In the Resources menu there are now the option to Import Animation, which lets you select a .json file and it will import the corresponding spritesheet that is specified in that json import it to the engine with its data set (duration and so forth).
The import searches for the json like this:
- import searches 'image' element in .json,
- filename as the 'image' spritesheet but in same folder as .json,
- finally also searches same folder as .json for same name as .json with suffix from 'image' element
so if 'image'=
/animation.png and json=<jsonPath>/anim.json, also searches <jsonPath>/animation.png and <jsonPath>/anim.png
Export
There is also now the option to export an animation as a json in the Aseprite format.
Code coverage
resolve #321
Amazing, thank you! Please allow us some more time to inspect and assess these changes in detail.
I've made a PR (https://github.com/DD2480-Group-11/litiengine/pull/30) to address some issues
Closing this due to inactivity. Thank you and feel free to resume at a later point :)