The basic idea of a* is that you have several possible positions
that something can be in, each being connected to those near it,
forming a web. In a lot of cases, this is a grid of some sort.
a* is then able to find the shortest path from a starting
position to a destination, if there is one, and try to do so
quickly by guessing roughly how far a step will be from the
destination using a heuristic before actually testing it. More
possible positions will use up more memory and need more
processing time. I could explain a* in more detail, but you're
just as well off doing a search to learn more. From how you have
phrased your question, it sounds like you want to create a path
using images that have been drawn to a Canvas (you can correct
me if I'm wrong). Unless you are only drawing collision-useful
images to the Canvas, this isn't a practical approach. You will
likely want to be keeping track of player positions and
collision information somewhere else. Path finding is not
related to the way that you are disp