Skip to main content

Class: TAnimatedSpriteComponent

Defined in: components/animated-sprite-component.ts:19

A component is a data structure that describes a property of an entity.

Extends​

Constructors​

Constructor​

new TAnimatedSpriteComponent(frameRate, frameCount, step?): TAnimatedSpriteComponent

Defined in: components/animated-sprite-component.ts:25

Parameters​

frameRate​

number

frameCount​

number

step?​

number = 1

Returns​

TAnimatedSpriteComponent

Overrides​

TComponent.constructor

Properties​

frame​

frame: number = 0

Defined in: components/animated-sprite-component.ts:20


frameCount​

frameCount: number

Defined in: components/animated-sprite-component.ts:27


frameRate​

frameRate: number

Defined in: components/animated-sprite-component.ts:26


instanceUVs?​

optional instanceUVs?: number[]

Defined in: components/animated-sprite-component.ts:23


paused​

paused: boolean = false

Defined in: components/animated-sprite-component.ts:21


step​

step: number = 1

Defined in: components/animated-sprite-component.ts:28


timeSinceLastFrame​

timeSinceLastFrame: number = 0

Defined in: components/animated-sprite-component.ts:22


requiredComponents?​

readonly static optional requiredComponents?: TComponentConstructor<TComponent>[]

Defined in: core/component.ts:9

The components that are required by this component. If the entity doesn't have any of the components, they will be created with default values.

Inherited from​

TComponent.requiredComponents