try to use to find path in platformer game prototype.
Work well, but every time is start Pathfind, memory of used by program increase.
This array of pointers
squares = new Square* [gameMapWidth];
for(int x=0; x<gameMapWidth; x++)
squares[x] = new Square[gameMapHeight];
define once.
try to use to find path in platformer game prototype.
Work well, but every time is start Pathfind, memory of used by program increase.
This array of pointers
squares = new Square* [gameMapWidth];
for(int x=0; x<gameMapWidth; x++)
squares[x] = new Square[gameMapHeight];
define once.