dangrnoodl logo

5 June 2022 ~ 1 min read

Path Finding


Path finding

Started with the basics and added A* for some path finding. Currently you can control the player with the arrow keys and also by clicking on a tile. With the mouse it uses A* to auto-navigate the map. This will be handy for enemy path finding soon enough too.

Luckily A* is so popular that you tend not to have to implement it yourself. @bgrins has a great javascript implementation at bgrins/javascript-astar ready to be used.