MakeTiles: implement support for files specifying an animation

This commit is contained in:
Jason Long 2014-06-19 11:35:32 -04:00
parent 2ea3318dea
commit 70bb50fed2
2 changed files with 96 additions and 0 deletions

View file

@ -315,6 +315,18 @@ public class MakeTiles
return pngFile;
}
static TileImage loadAnimation(String fileName)
throws IOException
{
File f = new File(fileName + ".ani");
if (f.exists()) {
return Animation.load(f);
}
else {
return loadImage(fileName);
}
}
static SourceImage loadImage(String fileName)
throws IOException
{