A* pahfinding
Author: JXstudio / JXinBOX / Jack Xu
Block Color Indicators:
Red : Starting Point
Blue : Ending Point
Black : Walls (Obstacles)
Orange: Final Shortest Path
Green : Closed List
Blue : Open List
Controller:
-
[Left Click/Drag] : Create Walls (black obstacles)
-
[Right Click/Drag] : Destroy Walls
-
[E]+[One Left Click] : Create Ending Point
-
[S]+[One Left Click] : Create Start Point
P.S.: Starting point can only be created after the existence of Ending point.
-
[A] : Showing The Path Finding Process with Animation Automatically
-
[Space] : Showing The Path Finding Process with Animation Manually, One click and one step.
-
[F] : Showing The Shortest Path and results, and time duration of calculation.
-
[E] : Empty all the path and starting points. (All blocks except walls and the ending block)
-
[L] : Clear all
-
[G] : Show/Hide Grids
-
[Scroll D/U] : Zoom In / Out
-
[Shift]+[Mouse Drag]: Move around the Canvas