tiles: add name property to spec
This commit is contained in:
parent
35acab9d30
commit
7b890e9d89
3 changed files with 26 additions and 11 deletions
|
@ -52,12 +52,13 @@ public class MakeTiles
|
|||
|
||||
for (int i = 0; i < NTILES; i++) {
|
||||
int tileNumber = SKIP_TILES + i;
|
||||
String rawSpec = recipe.getProperty(Integer.toString(tileNumber));
|
||||
String tileName = Integer.toString(tileNumber);
|
||||
String rawSpec = recipe.getProperty(tileName);
|
||||
if (rawSpec == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
TileSpec tileSpec = TileSpec.parse(tileNumber, rawSpec, recipe);
|
||||
TileSpec tileSpec = TileSpec.parse(tileNumber, tileName, rawSpec, recipe);
|
||||
FrameSpec ref = parseFrameSpec(tileSpec);
|
||||
if (ref == null) {
|
||||
// tile is defined, but it has no images
|
||||
|
|
Reference in a new issue