move unit info to config

This commit is contained in:
Evan
2024-11-16 21:09:25 -08:00
parent e4130c1f04
commit b5a8339eb3
17 changed files with 98 additions and 69 deletions
+1
View File
@@ -98,6 +98,7 @@ export class AStar {
}
private heuristic(a: Tile, b: Tile): number {
// TODO use wrapped
return 1.1 * Math.abs(a.cell().x - b.cell().x) + Math.abs(a.cell().y - b.cell().y);
}