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