I'm currently working on a project which needs simple AI's to walk around using pathfinding.
I'm trying to find a way to generate a polygon based on the connected tiles (explained below), an i'm wondering how to do this.
I know about the flood fill algorithm, but have never used it before.
This is what a map (could) look like (maps are created by the players)
Basically, i wan't the yellow outline as one polygon (vector2 array) and the red outline/area as another polygon (vector2 array)