mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
fixed JsDoc for Phaser.Tilemaps.Tilemap#createBlankDynamicLayer
x, y, width, height, tileWidth, tileHeight are all optional params I also add x, y params to jsdoc as they were missing
This commit is contained in:
parent
7aa46657c2
commit
32ff6df5b3
1 changed files with 6 additions and 4 deletions
|
@ -372,13 +372,15 @@ var Tilemap = new Class({
|
|||
*
|
||||
* @param {string} name - The name of this layer. Must be unique within the map.
|
||||
* @param {Phaser.Tilemaps.Tileset} tileset - The tileset the new layer will use.
|
||||
* @param {integer} width - The width of the layer in tiles. If not specified, it will default
|
||||
* @param {number} [x=0] - The world x position where the top left of this layer will be placed.
|
||||
* @param {number} [y=0] - The world y position where the top left of this layer will be placed.
|
||||
* @param {integer} [width] - The width of the layer in tiles. If not specified, it will default
|
||||
* to the map's width.
|
||||
* @param {integer} height - The height of the layer in tiles. If not specified, it will default
|
||||
* @param {integer} [height] - The height of the layer in tiles. If not specified, it will default
|
||||
* to the map's height.
|
||||
* @param {integer} tileWidth - The width of the tiles the layer uses for calculations. If not
|
||||
* @param {integer} [tileWidth] - The width of the tiles the layer uses for calculations. If not
|
||||
* specified, it will default to the map's tileWidth.
|
||||
* @param {integer} tileHeight - The height of the tiles the layer uses for calculations. If not
|
||||
* @param {integer} [tileHeight] - The height of the tiles the layer uses for calculations. If not
|
||||
* specified, it will default to the map's tileHeight.
|
||||
* @return {?Phaser.Tilemaps.DynamicTilemapLayer} Returns the new layer was created, or null if it failed.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue