Refactor sprite loading some, read alphas properly instead of this silly hack

This commit is contained in:
Adam
2016-06-09 18:45:41 -04:00
parent 3110c52bbf
commit e62381a65e
4 changed files with 120 additions and 83 deletions

View File

@@ -64,6 +64,8 @@ public class SpriteLoaderTest
java.io.File base = StoreLocation.LOCATION,
outDir = folder.newFolder();
int count = 0;
try (Store store = new Store(base))
{
store.load();
@@ -96,10 +98,14 @@ public class SpriteLoaderTest
java.io.File targ = new java.io.File(outDir, a.getArchiveId() + "-" + i + ".png");
targ.mkdirs();
ImageIO.write(image, "png", targ);
++count;
}
}
}
logger.info("Dumped to {}", outDir);
Assert.assertTrue(count > 3000);
logger.info("Dumped {} sprites to {}", count, outDir);
}
}