Pathfind AROUND AISprites instead of through them

This commit is contained in:
2014-06-22 13:26:29 -07:00
parent cc03e96970
commit 801b50bf16
2 changed files with 16 additions and 1 deletions

View File

@@ -244,7 +244,7 @@ var AISprite = function(game, x, y, key, frame) {
parseInt(this.y/32),
pos[0],
pos[1],
pathfinder_grid.clone()
gridWithAISprites()
);
prevpoint = [this.x, this.y];
console.log("New path has at most " + maxsteps + " steps in it");