A* pathfinding algorithm
Requirements: JDK 7 or newer, ant
ant
java -jar AStar.java
The graphical user interface will calculate paths automatically once you've specified a starting point and a destination.
- Left click: set a starting point
- Right click: set a destination
- Drag with lmb: create walls
- Drag with lmb: while shift is down: create sand
- Drag with rmb: to create empty space
- Drag with rmb: while pressing shift: create mud
- Press 'v' to toggle visualization