pathfinding with astar

This commit is contained in:
2026-07-06 00:09:04 -07:00
parent ca2ea3397d
commit 11af5422c4
3 changed files with 157 additions and 3 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ entity_set_move_target :: proc(
}
start := ew.position[i]
if !pathfind_bfs(tm, start, target, &ew.path[i]) {
if !pathfind_astar(tm, start, target, &ew.path[i]) {
return false
}
ew.path_index[i] = 1