File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -372,13 +372,15 @@ var Tilemap = new Class({
372372 *
373373 * @param {string } name - The name of this layer. Must be unique within the map.
374374 * @param {Phaser.Tilemaps.Tileset } tileset - The tileset the new layer will use.
375- * @param {integer } width - The width of the layer in tiles. If not specified, it will default
375+ * @param {number } [x=0] - The world x position where the top left of this layer will be placed.
376+ * @param {number } [y=0] - The world y position where the top left of this layer will be placed.
377+ * @param {integer } [width] - The width of the layer in tiles. If not specified, it will default
376378 * to the map's width.
377- * @param {integer } height - The height of the layer in tiles. If not specified, it will default
379+ * @param {integer } [ height] - The height of the layer in tiles. If not specified, it will default
378380 * to the map's height.
379- * @param {integer } tileWidth - The width of the tiles the layer uses for calculations. If not
381+ * @param {integer } [ tileWidth] - The width of the tiles the layer uses for calculations. If not
380382 * specified, it will default to the map's tileWidth.
381- * @param {integer } tileHeight - The height of the tiles the layer uses for calculations. If not
383+ * @param {integer } [ tileHeight] - The height of the tiles the layer uses for calculations. If not
382384 * specified, it will default to the map's tileHeight.
383385 * @return {?Phaser.Tilemaps.DynamicTilemapLayer } Returns the new layer was created, or null if it failed.
384386 */
You can’t perform that action at this time.
0 commit comments