MakeTiles: fix a couple bugs in code for loading animation
This commit is contained in:
parent
41c8d68717
commit
372c1a6519
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ public class MakeTiles
|
||||||
static TileImage parseFrameSpec(String rawSpec)
|
static TileImage parseFrameSpec(String rawSpec)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
String [] parts = rawSpec.split("|");
|
String [] parts = rawSpec.split("\\|");
|
||||||
for (int i = 0; i < parts.length; i++) {
|
for (int i = 0; i < parts.length; i++) {
|
||||||
parts[i] = parts[i].trim();
|
parts[i] = parts[i].trim();
|
||||||
}
|
}
|
||||||
|
@ -345,7 +345,7 @@ public class MakeTiles
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
String [] parts = layerStr.split("@", 2);
|
String [] parts = layerStr.split("@", 2);
|
||||||
TileImage img = loadImage(parts[0]);
|
TileImage img = loadAnimation(parts[0]);
|
||||||
|
|
||||||
if (parts.length >= 2) {
|
if (parts.length >= 2) {
|
||||||
TileImageSprite sprite = new TileImageSprite();
|
TileImageSprite sprite = new TileImageSprite();
|
||||||
|
|
Reference in a new issue