Simple Path Finding Within A Grid
![game](https://files.flashgames.cx/images/mZKalJtsY5hknpufmF5mbcdiY5OdlGqOl5mVkWtryJ5pZ5Vp.jpg)
This example shows a very simple pathfinding technique using a recursive function. You can draw on the grid to create obstacles to find a path around though the algorithm will only work for paths which are "easy" for it to find.
advertisement