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
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
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