Skip to content

Commit 0fd6779

Browse files
committed
Adding a couple notes about methods that manipulate multiple tiles
1 parent e19de28 commit 0fd6779

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

v3/src/gameobjects/tilemap/components/Fill.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var GetTilesWithin = require('./GetTilesWithin');
22

3+
// Fills indices, not other properties. Does not modify collisions. Matches v2 functionality.
34
var Fill = function (index, tileX, tileY, width, height, layer)
45
{
56
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);

v3/src/gameobjects/tilemap/components/ReplaceByIndex.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var GetTilesWithin = require('./GetTilesWithin');
22

3+
// Replaces indices, not other properties. Does not modify collisions. Matches v2 functionality.
34
var ReplaceByIndex = function (findIndex, newIndex, tileX, tileY, width, height, layer)
45
{
56
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);

v3/src/gameobjects/tilemap/components/Shuffle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var GetTilesWithin = require('./GetTilesWithin');
22
var ShuffleArray = require('../../../utils/array/Shuffle');
33

4+
// Shuffles indices, not other properties. Does not modify collisions. Matches v2 functionality.
45
var Shuffle = function (tileX, tileY, width, height, layer)
56
{
67
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);

v3/src/gameobjects/tilemap/components/SwapByIndex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var GetTilesWithin = require('./GetTilesWithin');
22

3-
// Swaps indices, not other properties (matches v2 functionality)
3+
// Swaps indices, not other properties. Does not modify collisions. Matches v2 functionality.
44
var SwapByIndex = function (indexA, indexB, tileX, tileY, width, height, layer)
55
{
66
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);

0 commit comments

Comments
 (0)