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