I'm trying to make a game at the moment and have some trouble with the A* algorithm for path finding.
In the picture the orange and rainbow cells are walkable, but the orange cells have walls around them that should not be crossed. I don't know how to define these walls for my A* algorithm.
So my player is going over the wall to get to the point (red path) but I want it to avoid the wall (green path).
I'm currently using this library: astar-javascript but I can't define "special" cells with it that could be crossed on one side only.
If anyone has an idea, thank you :)