TileComponent.fromAnimation constructor
TileComponent.fromAnimation({})
Implementation
TileComponent.fromAnimation({
required ControlledUpdateAnimation animation,
required Vector2 position,
required Vector2 size,
this.tileClass,
Map<String, dynamic>? properties,
double offsetX = 0,
double offsetY = 0,
}) {
properties = properties;
id = '${position.x}/${position.y}';
_animation = animation;
applyBleedingPixel(
position: position,
size: size,
offsetX: offsetX,
offsetY: offsetY,
calculatePosition: true,
);
}