Skip to content

makeSpriteAnimationSystem

makeSpriteAnimationSystem<TCtx>(options?): SchedulableSystem<TCtx>

Defined in: src/modules/animation/sprite-animation.ts:127

Build a schedulable system that advances every SpriteAnimationDef and writes the current frame name into the entity’s RenderableDef.

The system preserves all other Renderable fields — it only mutates frame. Entities without a RenderableDef are skipped (the animation still advances, but no renderable write occurs).

TCtx extends SpriteAnimationTickCtx

SpriteAnimationSystemOptions = {}

SchedulableSystem<TCtx>