herdem.c
/**
 * Handles the animation of a herdem actor
 */
Handles the animation of a herdem actor
Handles the animation of a herdem actor
void herdem_animation_handler(struct jty_actor *actor)
{
    jty_sprite *sprite = actor->sprites[actor->current_sprite];
    int animation_frames_passed = jty_engine->elapsed_frames \
                                  / FPS * HERDEM_ANIMATION_FRAMERATE;
    actor->current_frame = animation_frames_passed % sprite->num_of_frames;
    return;
}
void herdem_animation_handler ( struct jty_actor * actor ) { jty_sprite * sprite = actor -> sprites [ actor -> current_sprite ] ; int animation_frames_passed = jty_engine -> elapsed_frames / FPS * HERDEM_ANIMATION_FRAMERATE ; actor -> current_frame = animation_frames_passed % sprite -> num_of_frames ; return ; }
Handles the animation of a herdem actor
Handles the animation of a herdem actor