Skip to content

makeSpriteClipAnimationSystem

makeSpriteClipAnimationSystem<TCtx>(options): SchedulableSystem<TCtx>

Defined in: src/modules/animation/sprite-clip.ts:156

Build a schedulable system that advances every SpriteAnimatorDef by resolving its clip key in the registry, then writes the current frame name into the entity’s RenderableDef (preserving all other Renderable fields).

An animator whose clip key is missing from the registry is skipped for that tick and reported to onMissingClip. Entities without a RenderableDef still advance, but no renderable write occurs.

TCtx extends SpriteClipAnimationTickCtx

SpriteClipAnimationSystemOptions

SchedulableSystem<TCtx>