draw Sprite
Draws the given sprite to the canvas at its current position or at the specified x and y coordinates.
Parameters
sprite
The sprite to draw.
x
The x-coordinate to draw the sprite at. Defaults to the sprite's current x position.
y
The y-coordinate to draw the sprite at. Defaults to the sprite's current y position.
Draws the given sprite to the canvas at its current position or at the specified x, y, and z coordinates.
Parameters
sprite
The sprite to draw.
x
The x-coordinate to draw the sprite at. Defaults to the sprite's current x position.
y
The y-coordinate to draw the sprite at. Defaults to the sprite's current y position.
z
The z-coordinate to draw the sprite at. Defaults to the sprite's current z position.