public TMXTiledMap(String fileName, String tileSetsLocation) throws RuntimeException { try { load(Resources.openResource(fileName), tileSetsLocation); } catch (IOException e) { e.printStackTrace(); } }
public TMXTiledMap(String fileName, boolean loadTileSets) throws RuntimeException { this.loadTileSets = loadTileSets; fileName = fileName.replace('\\', '/'); String res = fileName.substring(0, fileName.lastIndexOf("/")); try { this.load(Resources.openResource(fileName), res); } catch (IOException e) { e.printStackTrace(); } }
/** 清空框架临时资源 */ public static void destroy() { GraphicsUtils.destroy(); // ZipResource.destroy(); Resources.destroy(); LSystem.gc(); }