PixelTile.animated constructor
PixelTile.animated(})
An animated tile, cycling through frames every stepTime seconds.
Implementation
PixelTile.animated(
this.frames, {
required this.stepTime,
this.collision = false,
this.tileClass,
this.properties,
}) {
if (frames.isEmpty) {
throw ArgumentError('PixelTile.animated: `frames` cannot be empty.');
}
}