xOffset = bounds.x; yOffset = bounds.y; widthInTiles = bounds.width; heightInTiles = bounds.height; map = new Tile[heightInTiles][widthInTiles];
this.bounds = bounds; map = new Tile[bounds.height][bounds.width];
    public void setBounds(Rectangle bounds) {        xOffset = bounds.x;        yOffset = bounds.y;        widthInTiles = bounds.width;        heightInTiles = bounds.height;        map = new Tile[heightInTiles][widthInTiles];    }