A sprite animation library for rust game development
This release removes all integration with bevy.
benimator
is no longer a bevy plugin. It is now an engine-agnostic rust library.
See the announcement for more details.
State::animation_frame_index
PlayBackSpeed
struct
Without bevy integration, it is now possible (and easier)
to alter the time duration, without the need for this struct.from_range
and from_iter
to from_indices
SpriteSheetAnimation
-> Animation
SpriteSheetAnimationState
-> State
!RepeatFrom n
run_once
animation.
So one must explicitly reset the state if they desire to restart the animation later.from_(yaml|ron)_(str|bytes)
functionsAnimation::from_iter
and Animation::from_range
take a FrameRate
instead of a duration.
The FrameRate
can be created from a frame duration, total duration or a from a fps (frame-per-second).fps
and total_duration
propertySerialize
for Animation
Extend<Frame>
for Animation
Eq
for Animation
State::new
constructorDefault
for Animation
an Frame
State::frame_index
methodupdate
function for the state.serde
should be used instead.This release removes all integration with bevy!
benimator
is no longer a bevy plugin, but an engine-agnostic rust library.
See the announcement for more details.
State::animation_frame_index
PlayBackSpeed
struct
Without bevy integration, it is now possible (and easier)
to alter the time duration, without the need for this struct.from_range
and from_iter
to from_indices
SpriteSheetAnimation
-> Animation
SpriteSheetAnimationState
-> State
!RepeatFrom n
run_once
animation.
So one must explicitly reset the state if they desire to restart the animation later.from_(yaml|ron)_(str|bytes)
functionsAnimation::from_iter
and Animation::from_range
take a FrameRate
instead of a duration.
The FrameRate
can be created from a frame duration, total duration or a from a fps (frames-per-second).fps
and total_duration
propertySerialize
for Animaition
Extend<Frame>
for Animation
Eq
for Animation
State::new
constructorDefault
for Animation
an Frame
State::frame_index
methodupdate
function for the state.serde
should be used instead.from_range
and from_iter
to from_indices
Animation::from_iter
and Animation::from_range
take a FrameRate
instead of a duration.
The FrameRate
can be created from a frame duration, total duration or a from a fps (frame-per-second).fps
propertyThis release removes all integration with bevy.
benimator
is no longer a bevy plugin, but an engine-agnostic rust library.
See the announcement for more details.
PlayBackSpeed
struct
Without bevy integration, it is now already possible (and easier)
to alter the time duration, without the need for this struct.SpriteSheetAnimation
-> Animation
SpriteSheetAnimationState
-> State
!RepeatFrom n
run_once
animation.
So one must explicitly reset the state if they desire to restart the animation later.from_(yaml|ron)_(str|bytes)
functionssprite_frame_index
method to stateupdate
function for the state.serde
should be used instead.