public Position getVisibleMapOffsetPosition(Player player) {

		int offsetXTile = player.x - (int) Math.ceil(Realm.MAP_WIDTH / 2);
		int offsetYTile = player.y - (int) Math.ceil(Realm.MAP_HEIGHT / 2);

		if (offsetXTile < 0)
			offsetXTile = 0;
		if (offsetYTile < 0)
			offsetYTile = 0;

		if (offsetXTile > Realm.WORLD_WIDTH - Realm.MAP_WIDTH)
			offsetXTile = Realm.WORLD_WIDTH - Realm.MAP_WIDTH;
		if (offsetYTile > Realm.WORLD_HEIGHT - Realm.MAP_HEIGHT)
			offsetYTile = Realm.WORLD_HEIGHT - Realm.MAP_HEIGHT;

		return new Position(offsetXTile, offsetYTile);
	}