viewAreaLimits (cameraX, cameraY) {
    var startCol = Math.floor(cameraX / this.tileWidth)
    var startRow = Math.floor(cameraY / this.tileHeight)

    return {
      startCol: startCol,
      endCol: startCol + Math.floor(this.viewWidthPx / this.tileWidth) + 1,
      startRow: startRow,
      endRow: startRow + Math.floor(this.viewHeightPx / this.tileHeight) + 1
    }
  }
/**
   * Converts camera location to area of MapGrid coordinates
   * @param {number} cameraX
   * @param {number} cameraY
   */
Converts camera location to area of MapGrid coordinates
@param {number} cameraX
@param {number} cameraY
Converts camera location to area of MapGrid coordinates @param { number } cameraX @param { number } cameraY
viewAreaLimits (cameraX, cameraY) {
    var startCol = Math.floor(cameraX / this.tileWidth)
    var startRow = Math.floor(cameraY / this.tileHeight)
    return {
      startCol: startCol,
      endCol: startCol + Math.floor(this.viewWidthPx / this.tileWidth) + 1,
      startRow: startRow,
      endRow: startRow + Math.floor(this.viewHeightPx / this.tileHeight) + 1
    }
  }
viewAreaLimits ( cameraX , cameraY ) { var startCol = Math . floor ( cameraX / this . tileWidth ) var startRow = Math . floor ( cameraY / this . tileHeight ) return { startCol : startCol , endCol : startCol + Math . floor ( this . viewWidthPx / this . tileWidth ) + 1 , startRow : startRow , endRow : startRow + Math . floor ( this . viewHeightPx / this . tileHeight ) + 1 } }
Converts camera location to area of MapGrid coordinates
 @param {number} cameraX
 @param {number} cameraY
Converts camera location to area of MapGrid coordinates @param { number } cameraX @param { number } cameraY