More work on pathfinding

This commit is contained in:
Anuken
2018-04-21 01:09:06 -04:00
parent 4261e6242c
commit fb14a83b9a
5 changed files with 47 additions and 25 deletions

View File

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