/** * Initialise resources and the map data * * @param container the container the game is running in */ public void init(GameContainer container) throws SlickException { container.setShowFPS(false); try { dataMap = new DataMap("testdata/map.dat"); } catch (IOException e) { throw new SlickException("Failed to load map data", e); } builder = new NavMeshBuilder(); navMesh = builder.build(dataMap); System.out.println("Navmesh shapes: "+navMesh.getSpaceCount()); }