MakeTiles: implement support for files specifying an animation
This commit is contained in:
parent
2ea3318dea
commit
70bb50fed2
2 changed files with 96 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Reference in a new issue