Reference to managed image. May be an image or a canvas
Position of the sprite
Order for sprite rendering
Order for sprite rendering
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
Render image sprite
Rendering context
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
Set new rotation angle
Rotation angle in degrees (from original image)
Generated using TypeDoc
Sprite implementation that manage a simple image