Properties:
| Name | Type | Description |
|---|---|---|
x |
number | The x position |
y |
number | The y postion |
texRow |
number | The texture row |
texCol |
number | The texture column |
zoom |
number | The zoom value |
angle |
number | The angle value |
flip |
boolean | Indicate if the texture if flipped |
opacity |
number | The opacity value |
Methods
-
Read the JSON associated to the animation frame element
Name Type Description jsonObject Json object describing the animation frame element -
Draw the animation element
Name Type Description picturePicture2D The picture associated to the animation positionTHREE.Vector2 The position on screen for animation rowsrows The number of rows in the animation texture colsnumber The number of columns in the animation texture