Phaser API Documentation

  Version: 
tilemap([config])

Description:

Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. When loading from CSV or a 2D array, you should specify the tileWidth & tileHeight. When parsing from a map from Tiled, the tileWidth, tileHeight, width & height will be pulled from the map data. For an empty map, you should specify tileWidth, tileHeight, width & height.

Parameters:

name type arguments description
config Phaser.Types.Tilemaps.TilemapConfig <optional>

The config options for the Tilemap.

Since: 3.0.0