@@ -4,20 +4,20 @@ var ParseToTilemap = require('./ParseToTilemap');
44// When registering a factory function 'this' refers to the GameObjectCreator context.
55
66/**
7- * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data
8- * provided. When loading from CSV or a 2D array, you should specify the tileWidth & tileHeight. When
9- * parsing from a map from Tiled, the tileWidth, tileHeight, width & height will be pulled from the
10- * map data. For an empty map, you should specify tileWidth, tileHeight, width & height.
7+ * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided.
8+ * When loading from CSV or a 2D array, you should specify the tileWidth & tileHeight. When parsing
9+ * from a map from Tiled, the tileWidth, tileHeight, width & height will be pulled from the map
10+ * data. For an empty map, you should specify tileWidth, tileHeight, width & height.
1111 *
1212 * @param {object } [config] - The config options for the Tilemap.
1313 * @param {string } [config.key] - The key in the Phaser cache that corresponds to the loaded tilemap
1414 * data.
15- * @param {array } [config.data] - Instead of loading from the cache, you can also load directly from
16- * a 2D array of tile indexes.
17- * @param {number } [config.tileWidth=32] - The width of a tile in pixels.
18- * @param {number } [config.tileHeight=32] - The height of a tile in pixels.
19- * @param {number } [config.width=10] - The width of the map in tiles.
20- * @param {number } [config.height=10] - The height of the map in tiles.
15+ * @param {integer[][] } [config.data] - Instead of loading from the cache, you can also load
16+ * directly from a 2D array of tile indexes.
17+ * @param {integer } [config.tileWidth=32] - The width of a tile in pixels.
18+ * @param {integer } [config.tileHeight=32] - The height of a tile in pixels.
19+ * @param {integer } [config.width=10] - The width of the map in tiles.
20+ * @param {integer } [config.height=10] - The height of the map in tiles.
2121 * @param {boolean } [config.insertNull=false] - Controls how empty tiles, tiles with an index of -1,
2222 * in the map data are handled. If `true`, empty locations will get a value of `null`. If `false`,
2323 * empty location will get a Tile object with an index of -1. If you've a large sparsely populated
0 commit comments