pico-animation 0.9.0

An Animation module for the pico engine ecs system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::types::_animation::Animation;
use pico_ecs::_component::Component;
use pico_rendering::types::_sprite::Sprite;

pub struct Animator {
    pub current_animation: usize,
    pub current_frame_index: usize,
    pub animations: &'static [Animation],
    pub frames: &'static [Sprite],
    pub frame_timer: u32,
}

impl Component for Animator {}