Skip to content

Commit 2793fde

Browse files
authored
Merge pull request phaserjs#3792 from DrevanTonder/master
fixed JsDoc for Phaser.Tilemaps.Tilemap#createBlankDynamicLayer
2 parents 7aa4665 + 32ff6df commit 2793fde

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/tilemaps/Tilemap.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)