Interfaces

AtlasSprite

One sprite placement in an <Atlas>. Every field is animatable.

Properties

rect

rect: SrcRect;

The sprite's rect in the atlas image, in image pixels.


scale?

optional scale?: Animated<number>;

Uniform scale. Defaults to 1.


x

x: Animated<number>;

Where the sprite's centre lands on the canvas.


y

y: Animated<number>;

On this page