MakeTiles: remove support for width/height specifier

This commit is contained in:
Jason Long 2014-06-16 19:55:30 -04:00
parent bb6ac09e5d
commit eb97e1c27c

View file

@ -127,8 +127,8 @@ public class MakeTiles
destX+TILE_SIZE, destY+TILE_SIZE,
ref.offsetX * sourceImg.basisSize / 16,
ref.offsetY * sourceImg.basisSize / 16,
(ref.offsetX + (ref.width != 0 ? ref.width : 16)) * sourceImg.basisSize / 16,
(ref.offsetY + (ref.height != 0 ? ref.height : 16)) * sourceImg.basisSize / 16,
(ref.offsetX + 16) * sourceImg.basisSize / 16,
(ref.offsetY + 16) * sourceImg.basisSize / 16,
null);
}
@ -149,8 +149,6 @@ public class MakeTiles
String fileName;
int offsetX;
int offsetY;
int width;
int height;
}
static FrameSpec parseFrameSpec(TileSpec spec)
@ -175,12 +173,6 @@ public class MakeTiles
if (parts.length >= 2) {
rv.offsetY = Integer.parseInt(parts[1]);
}
if (parts.length >= 3) {
rv.width = Integer.parseInt(parts[2]);
}
if (parts.length >= 4) {
rv.height = Integer.parseInt(parts[3]);
}
}//endif something given after '@' in image specifier
}//end foreach layer in image specification