Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 1.14 KB

README.md

File metadata and controls

18 lines (12 loc) · 1.14 KB

This project was inspired by Clément Mihailescu's path finding visualizer.

Pathfinding Visualizer

I made this because I watched a video of Clement doing it and thought it's a great idea to try and re-create it with what I've learned about drawing using Javascript's canvas/webgl. Although I later switched to rendering in SVG (Two.js is a high level api that can draw in canvas, webgl, or svg) due to performance issues. The point of this project wasn't to optimize it for performance, but rather in drawing and writing out the algorithms and experimenting with a finite state machine. The AStar algorithm was written by myself after reading a few articles online. It's almost accurate. See if you can figure out what's the missing small detail in it's implementation ;).

This works both in web and on mobile.

Libraries used

  • Two.js - A two-dimensional drawing api
  • RBush - A high-performance JavaScript library for 2D spatial indexing of points and rectangles
  • XState - A Javascript finite state machine