2 releases

0.2.1 Dec 14, 2024
0.2.0 Dec 14, 2024

#9 in #spritesheet

38 downloads per month
Used in animatron

MIT license

5KB
71 lines

animatron-derive

This is a companion macro for animation-transition.

Screen Shot 2022-08-08 at 3 28 21 PM

Screen Shot 2022-08-08 at 3 28 43 PM

Usage

#[derive(AnimationTransitionMacro)]
pub struct PlayerAnimationState {
    /// This is needed to tell the compiler the type of your animation variant enum
    #[variant]
    pub variant: PlayerAnimationVariant,
    pub idx: usize,
}

Dependencies

~1.5MB
~38K SLoC