GameDecorationWithCollision.withAnimation constructor

GameDecorationWithCollision.withAnimation({
  1. required Future<SpriteAnimation> animation,
  2. required Vector2 position,
  3. required Vector2 size,
  4. Iterable<ShapeHitbox>? collisions,
  5. double offsetX = 0,
  6. double offsetY = 0,
  7. 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,
      );