GameDecorationWithCollision.withAnimation constructor
GameDecorationWithCollision.withAnimation({
- required Future<
SpriteAnimation> animation, - required Vector2 position,
- required Vector2 size,
- Iterable<
ShapeHitbox> ? collisions, - double offsetX = 0,
- double offsetY = 0,
- bool renderAboveComponents = false,
Implementation
GameDecorationWithCollision.withAnimation({
required Future<SpriteAnimation> animation,
required Vector2 position,
required Vector2 size,
this.collisions,
double offsetX = 0,
double offsetY = 0,
super.renderAboveComponents,
}) : super.withAnimation(
animation: animation,
position: position,
size: size,
);