Skip to main content
Version: Phaser v4.0.0-rc.6

Types.GameObjects.TileSprite

TileSpriteConfig

<static> TileSpriteConfig

nametypeoptionaldefaultdescription
xnumberYes0The x coordinate of the Tile Sprite.
ynumberYes0The y coordinate of the Tile Sprite.
widthnumberYes512The width of the Tile Sprite. If zero it will use the size of the texture frame.
heightnumberYes512The height of the Tile Sprite. If zero it will use the size of the texture frame.
keystringYes"''"The key of the Texture this Tile Sprite will use to render with, as stored in the Texture Manager.
framenumber | stringPhaser.Textures.FrameYes"''"

Type: object

Member of: Phaser.Types.GameObjects.TileSprite

Source: src/gameobjects/tilesprite/typedefs/TileSpriteConfig.js#L1
Since: 3.0.0