diff --git a/build/phaser.d.ts b/build/phaser.d.ts index 79b547419..98b1b33cd 100644 --- a/build/phaser.d.ts +++ b/build/phaser.d.ts @@ -2377,7 +2377,7 @@ declare module Phaser { spritesheet(key: string, url: string, frameWidth: number, frameHeight: number, frameMax?: number, margin?: number, spacing?: number): Phaser.Loader; start(): void; text(key: string, url: string, overwrite?: boolean): Phaser.Loader; - tilemap(key: string, mapDataURL?: string, mapData?: Object, format?: string): Phaser.Loader; + tilemap(key: string, mapDataURL?: string, mapData?: Object, format?: number): Phaser.Loader; totalLoadedFiles(): number; totalQueuedFiles(): number; xmlLoadComplete(index:number): void; diff --git a/src/loader/Loader.js b/src/loader/Loader.js index 6008a25d7..c3d480b84 100644 --- a/src/loader/Loader.js +++ b/src/loader/Loader.js @@ -514,7 +514,7 @@ Phaser.Loader.prototype = { * @param {string} key - Unique asset key of the tilemap data. * @param {string} [mapDataURL] - The url of the map data file (csv/json) * @param {object} [mapData] - An optional JSON data object. If given then the mapDataURL is ignored and this JSON object is used for map data instead. - * @param {string} [format=Phaser.Tilemap.CSV] - The format of the map data. Either Phaser.Tilemap.CSV or Phaser.Tilemap.TILED_JSON. + * @param {number} [format=Phaser.Tilemap.CSV] - The format of the map data. Either Phaser.Tilemap.CSV or Phaser.Tilemap.TILED_JSON. * @return {Phaser.Loader} This Loader instance. */ tilemap: function (key, mapDataURL, mapData, format) {