File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -678,16 +678,19 @@ Phaser.TilemapLayer.prototype.resetTilesetCache = function ()
678678 * This method will set the scale of the tilemap as well as update the underlying block data of this layer
679679 *
680680 * @method Phaser.TilemapLayer#setScale
681- * @param {number } [xScale=1] - The scale factor along the X-plane of this tilemap
682- * @param {number } [yScale] - The scale factor along the Y-plane of this tilemap
681+ * @param {number } [xScale=1] - The scale factor along the X-plane
682+ * @param {number } [yScale] - The scale factor along the Y-plane
683683 */
684684Phaser . TilemapLayer . prototype . setScale = function ( xScale , yScale ) {
685685 xScale = xScale || 1 ;
686686 yScale = yScale || xScale ;
687687
688- for ( var y = 0 ; y < this . layer . data . length ; y ++ ) {
688+ for ( var y = 0 ; y < this . layer . data . length ; y ++ )
689+ {
689690 var row = this . layer . data [ y ] ;
690- for ( var x = 0 ; x < row . length ; x ++ ) {
691+
692+ for ( var x = 0 ; x < row . length ; x ++ )
693+ {
691694 var tile = row [ x ] ;
692695
693696 tile . width = this . map . tileWidth * xScale ;
You can’t perform that action at this time.
0 commit comments