Animated Sprite class
Name | Type | Description |
---|---|---|
game |
Core.Game | the game object |
width |
Number | the sprite width |
height |
Number | the sprite height |
url |
String | URL to the resource |
frameWidth |
Number | sprite frame tile width |
frameHeight |
Number | sprite frame tile height |
animSpeed |
Number | animation speed - fps. |
Methods
-
renders the sprite with the animation.
-
starts playing the animation
-
renders the sprite statically (disregards the animation)
-
stops playing the animation.
-
updates the animation.