Skip to content

Commit bde77f7

Browse files
committed
Blank layers - pass along map's base tile size
1 parent 76b74c6 commit bde77f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

v3/src/gameobjects/tilemap/Tilemap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ var Tilemap = new Class({
306306
row = [];
307307
for (var tileX = 0; tileX < width; tileX++)
308308
{
309-
row.push(new Tile(layerData, -1, tileX, tileY, tileWidth, tileHeight));
309+
row.push(new Tile(layerData, -1, tileX, tileY, tileWidth, tileHeight,
310+
this.tileWidth, this.tileHeight));
310311
}
311312
layerData.data.push(row);
312313
}

0 commit comments

Comments
 (0)