MakeTiles: find and use 128x128 versions of tile images

This commit is contained in:
Jason Long 2015-01-03 21:04:55 -05:00
parent f17989412e
commit 7cfe0c1dc5

View file

@ -403,6 +403,17 @@ public class MakeTiles
TILE_SIZE);
}
if (TILE_SIZE < 128) {
pngFile = new File(fileName+"_128x128.png");
if (pngFile.exists()) {
ImageIcon ii = new ImageIcon(pngFile.toString());
return new SourceImage(
ii.getImage(),
128,
TILE_SIZE);
}
}
pngFile = new File(fileName+".png");
if (pngFile.exists()) {
ImageIcon ii = new ImageIcon(pngFile.toString());