Tile.fromAnimation constructor
Tile.fromAnimation({})
Implementation
Tile.fromAnimation({
required ControlledUpdateAnimation animation,
required Vector2 position,
required Vector2 size,
this.type,
this.properties,
double offsetX = 0,
double offsetY = 0,
}) {
id = '${position.x}/${position.y}';
this._animation = animation;
generateRectWithBleedingPixel(
position,
size,
offsetX: offsetX,
offsetY: offsetY,
);
_positionText = position;
}