Code Monkey home page Code Monkey logo

aseprite's Introduction

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

aseprite's People

Contributors

harunx9 avatar icefoxen avatar jgraef avatar maulingmonkey avatar psteinhaus avatar tversteeg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aseprite's Issues

Taking over crates.io name or whole crate

Hello there!

I know that the topic isn't really welcome (or at least I have seen already wars started due to it ๐Ÿ˜„) but I wanted to ask if it would be possible to get owner rights on crates.io for the crate to publish a new version.

The crate hasn't received any love in almost three years now. It only supports a minimal amount of save file formats that Aseprite has nowadays, to be precise, it does only support the JSON variant.

The crate received a total of 680 downloads as of today, with only two crates depending on it:

  • blit, a Rust library for blitting 2D sprites. Last update 4 months ago. The dependency is marked as optional.
  • castle-game, an open-source tower defense game. Last updated 3 months ago. The dependency is build-only.

Given the circumstances (low total number of downloads) as well as only two projects actively using the crate, I would love to add missing save file formats and create an overall of the API.

Those changes should be accompanied with a major version update. The current version of the crate is 0.1.3, meaning that no public API has been marked as stable as of today. The proposed features that I want to add would result in a minor version bump for now. Once the public API has been stablilized, a 1.0 release will happen. The minor version bump shouldn't be a problem, as semver defines that libraries with a major version of 0 shouldn't be considered stable and changes can happen at any given time. The way that both libraries defined their dependencies (^0.1.13) means that a minor bump wouldn't even cause issues on their side.

From my point of view, since the crate isn't used anymore in ggez (or at least I couldn't find anything), I'd suggest that taking ownership of the crate name plus archiving this repository would make the most sense. I am open for discussion and other alternatives though ๐Ÿ˜„

Thanks for reading this and have a great week!
~ SirWindfield

Quality

  1. Doc-comment everything
  2. Clippy everything
  3. No unwraps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.