|
|
@@ -353,7 +353,7 @@ module.exports = { |
|
|
|
|
|
|
|
if (layerName.indexOf('walls') > -1) |
|
|
|
this.collisionMap[x][y] = 1; |
|
|
|
else if (sheetName.toLowerCase().indexOf('tiles') > -1) { |
|
|
|
else if (layerName === 'tiles' && sheetName === 'tiles') { |
|
|
|
//Check for water and water-like tiles |
|
|
|
if ([6, 7, 54, 55, 62, 63, 154, 189, 190, 192, 193, 194, 195, 196, 197].indexOf(cell) > -1) |
|
|
|
this.collisionMap[x][y] = 1; |
|
|
|