Takes a Sprite Game Object, or any object that extends it, and draws it to the current context.
name | type | arguments | description |
---|---|---|---|
sprite | Phaser.GameObjects.GameObject |
The texture based Game Object to draw. |
|
frame | Phaser.Textures.Frame |
The frame to draw, doesn't have to be that owned by the Game Object. |
|
camera | Phaser.Cameras.Scene2D.Camera |
The Camera to use for the rendering transform. |
|
parentTransformMatrix | Phaser.GameObjects.Components.TransformMatrix | <optional> |
The transform matrix of the parent container, if set. |