Skip to content

SpriteClip

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

An immutable, shareable animation clip: an ordered list of atlas frame names cycled at fps, looping or latching on the last frame. Unlike the inline SpriteAnimation, a clip carries no playback state — that lives per-entity on a SpriteAnimator, so one clip can drive many entities.

fps: number

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

Frames per second.


frames: readonly string[]

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

Ordered frame names — atlas keys resolved by the renderer.


loop: boolean

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

true restarts from frame 0 when the last frame elapses. false latches.