Skip to main content

Function: createSpriteAnimationEcsSystem()

createSpriteAnimationEcsSystem(time, animationRegistry): EcsSystem<[SpriteAnimationEcsComponent, SpriteEcsComponent]>

Defined in: animations/systems/sprite-animation-system.ts:17

Creates a new ECS-style sprite animation system.

Parameters

time

Time

The Time instance.

animationRegistry

AssetRegistry<AnimationClip>

The registry containing animation clips.

Returns

EcsSystem<[SpriteAnimationEcsComponent, SpriteEcsComponent]>

An ECS system that updates sprite animations.