Class: MapData

Phaser.Tilemaps. MapData

A class for representing data about a map. Maps are parsed from CSV, Tiled, etc. into this
format. A Tilemap object get a copy of this data and then unpacks the needed properties into
itself.


new MapData( [config])

Parameters:
Name Type Argument Description
config object <optional>

[description]

Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 10)

Members


collision :object

[description]

Type:
  • object
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 166)

format :integer

[description]

Type:
  • integer
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 94)

height :number

[description]

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 49)

heightInPixels :number

[description]

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 85)

imageCollections :array

[description]

Type:
  • array
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 184)

images :array

[description]

Type:
  • array
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 148)

layers :array

[description]

Type:
  • array
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 139)

name :string

[description]

Type:
  • string
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 31)

objects :object

[description]

Type:
  • object
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 157)

orientation :string

[description]

Type:
  • string
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 103)

properties :object

[description]

Type:
  • object
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 130)

renderOrder :string

[description]

Type:
  • string
Since: 3.12.0
Source: src/tilemaps/mapdata/MapData.js (Line 112)

tileHeight :number

[description]

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 67)

tiles :array

[description]

Type:
  • array
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 193)

tilesets :array

[description]

Type:
  • array
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 175)

tileWidth :number

[description]

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 58)

version :string

[description]

Type:
  • string
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 121)

width :number

[description]

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 40)

widthInPixels :number

[description]

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/mapdata/MapData.js (Line 76)