Tiled image. All frames must have the same size
Number of frames for each direction
The list of available directions, vertically aligned from top to bottom
A rectangle representing both the position of the Sprite and the dimension of a frame
Order for sprite rendering
Current frame index
The list of available directions, vertically aligned from top to bottom
Number of frames for each direction
Order for sprite rendering
Direction
Managed image
Adds angle to current rotation
Rotation angle in degrees (delta)
Checks if Sprite collides a specified Rectangle
Rectangle to check
true only if provided Rectangle collides the Sprite
Gets referenced image
The Image object managed by this sprite
Get current rotation angle
rotation angle in degrees
Cycles to next frame
Render frame
Rendering context
Searches for nearest available direction
The normal direction
Change referenced image. May be an image or a canvas. Internally converted to an image : Canvas may be modified and reused without inteference with current object.
Reference to managed image
Defines new orientation for sprite
New orientation in degrees
Set new rotation angle
Rotation angle in degrees (from original image)
Generated using TypeDoc
Extension of the ImageSprite to manage multi-frames (tiled) images