The aim of this project is to provide a path-finding library that can be easily incorporated into web games. It may run on Node.js or the browser. It comes along with an online demo to show how the algorithms execute. (The pathfinding speed is slowed down in the demo). Note that this project only provides path-finding algorithms for 2D space. If you need to work in a 3D environment, then you may use @schteppe's fork. When instantiating path-finders, you may pass in additional parameters to indicate which specific strategies to use. For all path-finders, you may indicate whether diagonal movement is allowed. The default value is false, which means that the path can only go orthogonally. When diagonal movement is enabled, you might want to prevent the path from touching the corners of the occupied grid blocks. This is usually desirable if the objects using the path have physical width and can also move between the grid cells.

Features

  • PathFinding.js is a javascript library to find paths on a 2D square grid
  • It works in both node.js and browser environments
  • A great visualization of the different pathfinding algorithms is available
  • PathFinding.js supports installation using npm and bower command line tools
  • The default gulp task does everything(except running the benchmarks)
  • Provides path-finding algorithms for 2D space

Project Samples

Project Activity

See All Activity >

Categories

Games, Libraries

License

MIT License

Follow PathFinding.js

PathFinding.js Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PathFinding.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Games, JavaScript Libraries

Registered

2021-07-29