Namespace: TileSprite

Phaser.Types.GameObjects. TileSprite

Type Definitions


TileSpriteConfig

Type:
  • object
Properties:
Name Type Argument 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 integer <optional>
512

The width of the Tile Sprite. If zero it will use the size of the texture frame.

height integer <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 string <optional>
''

An optional frame from the Texture this Tile Sprite is rendering with.

Since: 3.0.0
Source: src/gameobjects/tilesprite/typedefs/TileSpriteConfig.js (Line 1)