Class: TileSprite

Phaser. TileSprite

Phaser.Tilemap

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

Properties:
Name Type Description
texture Description

Description.

Source:

tilePosition

Properties:
Name Type Description
tilePosition Point

The offset position of the image that is being tiled.

Source:

tileScale

Properties:
Name Type Description
tileScale Point

The scaling of the image that is being tiled.

Source:

type

Properties:
Name Type Description
type Description

Description.

Source:
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Fri Nov 01 2013 18:16:16 GMT-0000 (GMT) using the DocStrap template.