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 sheet::Animation;pub use sheet::Frame;pub use sheet::SheetError;pub use sheet::SpriteSheet;
Modules§
- aseprite
- The subset of Aseprite’s
json-arrayexport format that we read. Unknown fields are ignored, since Aseprite adds metadata between versions. - character
- The
Charactertrait 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.