Phaser API Documentation

  Version: 
setBaseTileSize(tileWidth, tileHeight)

Description:

Sets the base tile size for the map. Note: this does not necessarily match the tileWidth and tileHeight for all layers. This also updates the base size on all tiles across all layers.

Parameters:

name type description
tileWidth number

The width of the tiles the map uses for calculations.

tileHeight number

The height of the tiles the map uses for calculations.

Returns:
Description:

This Tilemap object.

Since: 3.0.0
Source: src/tilemaps/Tilemap.js (Line 2263)