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).
Type Parameters
Section titled “Type Parameters”TCtx extends SpriteAnimationTickCtx
Parameters
Section titled “Parameters”options?
Section titled “options?”SpriteAnimationSystemOptions = {}
Returns
Section titled “Returns”SchedulableSystem<TCtx>