Skip to content

ggez/aseprite

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

aseprite

A Rust crate for loading data from the aseprite sprite editor

CI Cargo Downloads

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.

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

Docs

Documentation for the latest version is on docs.rs.

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:

use aseprite::SpritesheetData;
use std::fs::File;

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

About

A parser for the aseprite sprite editor files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages