Hi all!
it's my first game. About a month with SFML, about 7 month of studying programming from zero.
Code:
https://github.com/tkir/tkir_GameNow I tring to convert game in isometric map.
I checked collisions, but can't make pathfinder.
Is anybody made something like:
struct entityObject{
Vector2f point[4];
};
std::vector<Vector2f> pathfinder (entityObject player,
std::vector<entityObject> obstacles,
Vector2f targetPosition)
{
std::vector<Vector2f> path
/* ... */
return path;
}
std::vector<Vector2f> path = pathfinder(player, obstaclesVector, targetPos);
map contains from the float pixels, player is not a point (it have sizes)
Is somebody solved this pathfinder already?