Jump to content

Recommendations for grid-based pathfinding


jorbascrumps
 Share

Recommended Posts

Hi all,

I've been working on a multiplayer strategy game with Phaser for a while now and I need to do some pathfinding calculations. I've been using this project for the longest time but it's no longer meeting my requirements for this project (namely, actively or recently maintained, usable in Node, and synchronous). Does anyone have any recommendations?

I've come across the following packages:

http://github.com/bgrins/javascript-astar - Abandoned; doesn't work in Node

https://github.com/qiao/PathFinding.js - Promising, but abandoned; browser bundle not included on npm

https://github.com/prettymuchbryce/easystarjs - Abandoned; currently conflicting with my build process so I can't test yet

Thanks!

Link to comment
Share on other sites

I wasn't aware Easystar.js is abandoned, where did you hear this? Easystar is usually my go to for simple grid based path finding and I am using it in a few of my games without a hitch.

As an alternative have you considered using a navmesh? I would recommend this approach for a boost in performance.

Here is a really great navmesh lib that has a wrapper for Phaser 2 and 3:

https://github.com/mikewesthad/navmesh

The author has also made a great guide for getting it up and running.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...