I am working on a game using the A-star (A *) to search for paths, but I have come to the conclusion that I have some objects that are larger than one square of the grid.
I am running on a 16 * 16px grid. wall segments 16 * 16 and therefore make one square impassable. Some of my villains are 32 * 32, and so they need to check that the gap is at least 2 squares of the grid in order to be able to go through it.
I can't just create a 32 * 32 grid, because the design requires thin walls (16 pixels), and there are several smaller villains that occupy only one 16 * 16 square.
How to implement this mutual resolution environment? Is A Star Still the Right Tool?
source
share