Code Monkey home page Code Monkey logo

bevy_aseprite's Introduction

Bevy Aseprite Parser and Loader

This is a fork of TheNeikos/bevy_spicy_aseprite.

Add bevy_aseprite = "0.12" to your Cargo.toml.

Compatability table

bevy bevy_aseprite
0.12 0.12
0.11 0.11
0.10 0.10
0.9 0.9

How to use it without derives

    commands.spawn(AsepriteBundle {
        aseprite: asset_server.load("player.ase"),
        animation: AsepriteAnimation::from("walk"),
        transform: Transform {...},
        ..Default::default()
    });

How to use it with derive (for compile time validation)

    mod sprites {
      use bevy_aseprite::aseprite;
      aseprite!(pub Player, "player.ase");
    }

    ...

    commands.spawn(AsepriteBundle {
        aseprite: asset_server.load(sprites::Player::PATH),
        animation: AsepriteAnimation::from(sprites::Player::tags::LEFT_WALK),
        transform: Transform {...},
        ..Default::default()
    });

Examples

Check out the example to see how it could be used:

cargo run --example show_aseprite

Limitations

Currently no support for slices or toggling layers.

bevy_aseprite's People

Contributors

mdenchev avatar theneikos avatar eduardorodriguesf avatar jarkonik avatar lemunozm avatar noahshomette avatar rcornall avatar phigamedevelopment avatar

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.