getFutureSpriteAnimation static method
Implementation
static Future<SpriteAnimation> getFutureSpriteAnimation(
List<TileSprite> frames,
double stepTime,
) async {
final spriteList = <Sprite>[];
for (final frame in frames) {
final sprite = await MapAssetsManager.getFutureSprite(
frame.path,
position: frame.position,
size: frame.size,
);
spriteList.add(sprite);
}
return SpriteAnimation.spriteList(
spriteList,
stepTime: stepTime,
);
}