@Override public boolean mouseMoved(int screenX, int screenY) { test.lastScreenX = screenX; test.lastScreenY = screenY; test.updatePath(false); return true; }
@Override public boolean touchUp(int screenX, int screenY, int pointer, int button) { test.getCamera().unproject(test.tmpUnprojection.set(screenX, screenY, 0)); int tileX = (int) (test.tmpUnprojection.x / width); int tileY = (int) (test.tmpUnprojection.y / width); test.worldMap.setLevel(0); HierarchicalTiledNode startNode = test.worldMap.getNode(tileX, tileY); if (startNode.type == TiledNode.TILE_FLOOR) { test.startTileX = tileX; test.startTileY = tileY; test.updatePath(true); } return true; }