Headless/CLI LibGDX
I'm coding the server-side for a small LibGDX powered game, and have stumbled across an issue. Every time I try and use any Gdx.files.* methods, I'm met with a NullPointerException . Apparently this is because I'm not implementing the ApplicationListener, so LibGDX has not been initialized. Is there any way of initializing LibGDX in a headless/CLI way? I need to be able to load TiledMap objects on the server-side. MapLoader(Request request) { TiledMap tmp = new TmxMapLoader().load("maps/" + request.name + ".tmx"); } Exception in thread "Server" java.lang.NullPointerException at com.tester