mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Fixing internal method name typos
This commit is contained in:
parent
500da5d07f
commit
e3dbf7c2d0
2 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
var GetTilesWithin = require('./GetTilesWithin');
|
||||
|
||||
var Fill = function (srcTileX, srcTileY, width, height, destTileX, destTileY, layer)
|
||||
// Copies indices, not other properties. Does not modify collisions.
|
||||
var Copy = function (srcTileX, srcTileY, width, height, destTileX, destTileY, layer)
|
||||
{
|
||||
if (srcTileX === undefined || srcTileX < 0) { srcTileX = 0; }
|
||||
if (srcTileY === undefined || srcTileY < 0) { srcTileY = 0; }
|
||||
|
@ -21,4 +22,4 @@ var Fill = function (srcTileX, srcTileY, width, height, destTileX, destTileY, la
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = Fill;
|
||||
module.exports = Copy;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
var GetTilesWithin = require('./GetTilesWithin');
|
||||
var GetRandomElement = require('../../../utils/array/GetRandomElement');
|
||||
|
||||
var Shuffle = function (tileX, tileY, width, height, indices, layer)
|
||||
// Randomizes indices, not other properties. Does not modify collisions. Matches v2 functionality.
|
||||
var Randomize = function (tileX, tileY, width, height, indices, layer)
|
||||
{
|
||||
var i;
|
||||
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);
|
||||
|
@ -25,4 +26,4 @@ var Shuffle = function (tileX, tileY, width, height, indices, layer)
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = Shuffle;
|
||||
module.exports = Randomize;
|
||||
|
|
Loading…
Add table
Reference in a new issue