A * pathfinding in Hexmap in JavaScript

I want to use the A* path search algorithm in my game with a hexagonal map. I found some JavaScript options here and here . But is it possible to apply it to a hexagonal map?

In most cases, it uses some external file. I think I should edit it. But I'm not very good at JavaScript.

Do you know some implementation that can be used for a hexagonal map?

+4
source share

Source: https://habr.com/ru/post/1382686/


All Articles