Atlas
A loaded spritesheet from renderer.loadAtlas. Frame names are the ones in the JSON.
Properties
Section titled “Properties”frames
Section titled “frames”frames:
Record<string,number>
Frame index (Sprite.frame) by name.
tags:
Record<string,AtlasTag>
Aseprite tags as Animation values: [Animation, atlas.tags.run].
texture
Section titled “texture”texture:
number
Texture id for Sprite.texture.
Methods
Section titled “Methods”sprite()
Section titled “sprite()”sprite(
name):object
Sprite values for a frame: texture, frame and its untrimmed size. Throws for an unknown name.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”object
frame:
number
h:
number
texture
Section titled “texture”texture:
number
w:
number
