Phaser API Documentation

  Version: 
setSize(tileWidth, tileHeight, baseWidth, baseHeight)

Description:

Sets the size of the tile and updates its pixelX and pixelY.

Parameters:

name type description
tileWidth number

The width of the tile in pixels.

tileHeight number

The height of the tile in pixels.

baseWidth number

The base width a tile in the map (in pixels).

baseHeight number

The base height of the tile in pixels (in pixels).

Returns:
Description:

This Tile object instance.

Since: 3.0.0
Source: src/tilemaps/Tile.js (Line 706)