name | type | arguments | Default | description |
---|---|---|---|---|
x | number | <optional> | 0 |
The x coordinate of the Tile Sprite. |
y | number | <optional> | 0 |
The y coordinate of the Tile Sprite. |
width | number | <optional> | 512 |
The width of the Tile Sprite. If zero it will use the size of the texture frame. |
height | number | <optional> | 512 |
The height of the Tile Sprite. If zero it will use the size of the texture frame. |
key | string | <optional> | '' |
The key of the Texture this Tile Sprite will use to render with, as stored in the Texture Manager. |
frame | number | string | Phaser.Textures.Frame | <optional> | '' |
An optional frame from the Texture this Tile Sprite is rendering with. |