mini_arcade_core.scenes.systems.builtins.animation

Animation system for the mini arcade engine.

Classes

HasAnimSprite

Protocol for entities that have an animation and a texture.

AnimationTickSystem

System to update animations and set the current frame as texture.

Module Contents

class mini_arcade_core.scenes.systems.builtins.animation.HasAnimSprite

Bases: Protocol

Protocol for entities that have an animation and a texture.

anim: object | None
texture: int | None
class mini_arcade_core.scenes.systems.builtins.animation.AnimationTickSystem

System to update animations and set the current frame as texture.

name: str = 'common_anim_tick'
order: int = 0
get_entities: Callable[[object], Iterable[HasAnimSprite]]
step(ctx)

Step the system, updating animations and setting textures.