Skip to main content

clairlune_sprites/
lib.rs

1//! Sprite sheets and the `Character` trait.
2//!
3//! All character-specific code and data live here, behind [`Character`]
4//! (PLAN.md section 7.2, step 6). If the character ever has to be replaced, only
5//! this crate and its `assets/clawd/` change.
6
7pub mod aseprite;
8pub mod character;
9pub mod sheet;
10
11pub use character::{Character, Placeholder, SheetCharacter};
12pub use sheet::{Animation, Frame, SheetError, SpriteSheet};
13
14/// Sheets embedded from `assets/clawd/` by the build script.
15pub mod embedded {
16    include!(concat!(env!("OUT_DIR"), "/sheets.rs"));
17}