Implemented fast dijkstra-map pathfinding

This commit is contained in:
Anuken
2018-05-01 21:34:30 -04:00
parent 036f233946
commit 3dd07d2f4a
21 changed files with 211 additions and 96 deletions

View File

@@ -199,10 +199,6 @@ public class DesktopInput extends InputHandler{
shooting = true;
}
if(Inputs.keyTap(Input.P)){
world.pathfinder().test(world.tileWorld(player.x, player.y), world.tileWorld(Graphics.mouseWorld().x, Graphics.mouseWorld().y));
}
if(!ui.hasMouse()) {
if (showCursor)
Cursors.setHand();