You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {string} name - The name of this layer. Must be unique within the map.
443
-
* @param {Phaser.Tilemaps.Tileset} tileset - The tileset the new layer will use.
442
+
* @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.
444
443
* @param {number} [x=0] - The world x position where the top left of this layer will be placed.
445
444
* @param {number} [y=0] - The world y position where the top left of this layer will be placed.
446
-
* @param {integer} [width] - The width of the layer in tiles. If not specified, it will default
447
-
* to the map's width.
448
-
* @param {integer} [height] - The height of the layer in tiles. If not specified, it will default
449
-
* to the map's height.
450
-
* @param {integer} [tileWidth] - The width of the tiles the layer uses for calculations. If not
451
-
* specified, it will default to the map's tileWidth.
452
-
* @param {integer} [tileHeight] - The height of the tiles the layer uses for calculations. If not
453
-
* specified, it will default to the map's tileHeight.
445
+
* @param {integer} [width] - The width of the layer in tiles. If not specified, it will default to the map's width.
446
+
* @param {integer} [height] - The height of the layer in tiles. If not specified, it will default to the map's height.
447
+
* @param {integer} [tileWidth] - The width of the tiles the layer uses for calculations. If not specified, it will default to the map's tileWidth.
448
+
* @param {integer} [tileHeight] - The height of the tiles the layer uses for calculations. If not specified, it will default to the map's tileHeight.
449
+
*
454
450
* @return {?Phaser.Tilemaps.DynamicTilemapLayer} Returns the new layer was created, or null if it failed.
* @param {(integer|string)} layerID - The layer array index value, or if a string is given, the
522
-
* layer name from Tiled.
523
-
* @param {Phaser.Tilemaps.Tileset} tileset - The tileset the new layer will use.
524
-
* @param {number} x - The x position to place the layer in the world. If not specified, it will
525
-
* default to the layer offset from Tiled or 0.
526
-
* @param {number} y - The y position to place the layer in the world. If not specified, it will
527
-
* default to the layer offset from Tiled or 0.
518
+
* @param {(integer|string)} layerID - The layer array index value, or if a string is given, the layer name from Tiled.
519
+
* @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.
520
+
* @param {number} x - The x position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.
521
+
* @param {number} y - The y position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.
528
522
*
529
523
* @return {?Phaser.Tilemaps.DynamicTilemapLayer} Returns the new layer was created, or null if it failed.
0 commit comments