GameDecoration constructor
GameDecoration({
- Sprite? sprite,
- required Vector2 position,
- required double height,
- required double width,
- SpriteAnimation? animation,
Implementation
GameDecoration({
this.sprite,
required Vector2 position,
required double height,
required double width,
SpriteAnimation? animation,
}) {
this.animation = animation;
this.position = generateRectWithBleedingPixel(
position,
width,
height,
);
}