clairlune-sprites 0.3.0

Sprite sheets (Aseprite exports), anchors and the Character trait for Clairlune
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Sprite sheets and the `Character` trait.
//!
//! All character-specific code and data live here, behind [`Character`]
//! (PLAN.md section 7.2, step 6). If the character ever has to be replaced, only
//! this crate and its `assets/clawd/` change.

pub mod aseprite;
pub mod character;
pub mod sheet;

pub use character::{Character, Placeholder, SheetCharacter, builtin_character};
pub use sheet::{Animation, Frame, SheetError, SpriteSheet};

/// Sheets embedded from `assets/clawd/` by the build script.
pub mod embedded {
    include!(concat!(env!("OUT_DIR"), "/sheets.rs"));
}