public Position getVisibleMapOffsetPosition(Player player) {

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

		if (offsetXObject < 0)
			offsetXObject = 0;
		if (offsetYObject < 0)
			offsetYObject = 0;

		if (offsetXObject > Realm.WORLD_WIDTH - Realm.MAP_WIDTH)
			offsetXObject = Realm.WORLD_WIDTH - Realm.MAP_WIDTH;
		if (offsetYObject > Realm.WORLD_HEIGHT - Realm.MAP_HEIGHT)
			offsetYObject = Realm.WORLD_HEIGHT - Realm.MAP_HEIGHT;

		return new Position(offsetXObject, offsetYObject);
	}