aseprite 0.1.1

A crate to load files from the aseprite sprite editor.
Documentation

aseprite

A crate for loading data from the aseprite sprite editor. Should go along well with the tiled crate, I hope!

It does not load any actual images, just the metadata. Currently it only loads aseprite's JSON export format, and only when exported in a particular format that has all the options just right. I've yet to find a use case that won't cover though.

Automatically exporting a sprite to a given format is documented here: https://www.aseprite.org/docs/cli/

Example

Export sprite sheet with:

aseprite -b boonga.ase --sheet boonga.png --format json-array --list-tags --list-layers --data boonga.json

Then write a program to load it:

extern crate serde_json;
extern crate aseprite;

use std::fs::File;

fn main() {
   let file = File::open("boonga.json").unwrap();
   let spritesheet: aseprite::SpritesheetData = serde_json::from_reader(file).unwrap();
   println!("Spritesheet is {:?}", spritesheet);
}