add method
Implementation
SpriteAnimation add(SpriteAnimation options) {
options.texture.repeat.setValues(1 / options.tilesHorizontal, 1 / options.tilesVertical);
final SpriteAnimation animation = options;
animation.numberOfTiles = options.tilesHorizontal * options.tilesVertical;
animation.currentTile = animation.startFrame;
animation.looped = 0;
animations.add(animation);
return animation;
}