CollisionManager.getInstance().setTiles(tiles);
}
private void updateDisplayedArea(){
Player player = Player.getInstance();
displayStartX = player.getTileX() - leftOffsetInTiles;
displayStartY = player.getTileY() - topOffsetInTiles;
displayEndX = player.getTileX() + leftOffsetInTiles;
displayEndY = player.getTileY() + topOffsetInTiles;
if (displayStartX < 0) { displayStartX = 0; }
if (displayStartY < 0) { displayStartY = 0; }
if (displayEndX > width) { displayEndX = width; }
if (displayEndY > height) { displayEndY = height; }