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 {(integer|string)} layerID - The layer array index value, or if a string is given, the
722
-
* layer name from Tiled.
723
-
* @param {Phaser.Tilemaps.Tileset} tileset - The tileset the new layer will use.
724
-
* @param {number} x - The x position to place the layer in the world. If not specified, it will
725
-
* default to the layer offset from Tiled or 0.
726
-
* @param {number} y - The y position to place the layer in the world. If not specified, it will
727
-
* default to the layer offset from Tiled or 0.
721
+
* @param {(integer|string)} layerID - The layer array index value, or if a string is given, the layer name from Tiled.
722
+
* @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.
723
+
* @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.
724
+
* @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.
728
725
*
729
726
* @return {?Phaser.Tilemaps.StaticTilemapLayer} Returns the new layer was created, or null if it failed.
730
727
*/
@@ -749,17 +746,6 @@ var Tilemap = new Class({
749
746
750
747
this.currentLayerIndex=index;
751
748
752
-
// Make sure that all the LayerData and the tiles have the correct tile size. They usually
753
-
// are, but wouldn't match if you try to load a 2x or 4x res tileset when the map was made
754
-
// with a 1x res tileset.
755
-
756
-
/*
757
-
if (layerData.tileWidth !== tileset.tileWidth || layerData.tileHeight !== tileset.tileHeight)
0 commit comments