Skip to main content

Crate clairlune_sprites

Crate clairlune_sprites 

Source
Expand description

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.

Re-exports§

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

Modules§

aseprite
The subset of Aseprite’s json-array export format that we read. Unknown fields are ignored, since Aseprite adds metadata between versions.
character
The Character trait and its two implementations: the M1 placeholder pixel map, and sheets exported from the project’s own Aseprite files.
embedded
Sheets embedded from assets/clawd/ by the build script.
sheet
Decoding and validating an exported sprite sheet into animations.