Exemplo n.º 1
0
 public TMXTiledMap(String fileName, String tileSetsLocation) throws RuntimeException {
   try {
     load(Resources.openResource(fileName), tileSetsLocation);
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
Exemplo n.º 2
0
 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();
   }
 }
Exemplo n.º 3
0
 /** 清空框架临时资源 */
 public static void destroy() {
   GraphicsUtils.destroy();
   // ZipResource.destroy();
   Resources.destroy();
   LSystem.gc();
 }