diff --git a/src/tilemap/TilemapParser.js b/src/tilemap/TilemapParser.js index b9f1a8eb7..089013133 100644 --- a/src/tilemap/TilemapParser.js +++ b/src/tilemap/TilemapParser.js @@ -319,6 +319,10 @@ Phaser.TilemapParser = { newSet.columns = (set.imagewidth - set.margin) / (set.tilewidth + set.spacing); newSet.total = newSet.rows * newSet.columns; + if (newSet.rows % 1 !== 0 || newSet.columns % 1 !== 0) { + console.warn('TileSet image dimensions do not match expected dimensions.'); + } + tilesets.push(newSet); }