new TileSprite(game, x, y, width, height, key, frame)
Create a new <code>TileSprite</code>.
Parameters:
Name | Type | Description |
---|---|---|
game |
Phaser.Game | Current game instance. |
x |
number | X position of the new tileSprite. |
y |
number | Y position of the new tileSprite. |
width |
number | the width of the tilesprite. |
height |
number | the height of the tilesprite. |
key |
string | Phaser.RenderTexture | PIXI.Texture | This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture or PIXI.Texture. |
frame |
string | number | If this Sprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index. |
- Source:
Members
-
texture
-
- Source:
Properties:
Name Type Description texture
Description Description.
-
tilePosition
-
- Source:
Properties:
Name Type Description tilePosition
Point The offset position of the image that is being tiled.
-
tileScale
-
- Source:
Properties:
Name Type Description tileScale
Point The scaling of the image that is being tiled.
-
type
-
- Source:
Properties:
Name Type Description type
Description Description.