GameDecoration constructor
GameDecoration({
- required Vector2 position,
- required Vector2 size,
- Sprite? sprite,
- SpriteAnimation? animation,
- Anchor anchor = Anchor.topLeft,
- double angle = 0,
- LightingConfig? lightingConfig,
- bool renderAboveComponents = false,
Implementation
GameDecoration({
required super.position,
required super.size,
Sprite? sprite,
SpriteAnimation? animation,
super.anchor,
super.angle,
super.lightingConfig,
super.renderAboveComponents,
}) {
this.sprite = sprite;
setAnimation(animation);
applyBleedingPixel(position: position, size: size);
}