TileWithCollision.withAnimation constructor

TileWithCollision.withAnimation({
  1. required ControlledUpdateAnimation animation,
  2. required Vector2 position,
  3. required Vector2 size,
  4. String? tileClass,
  5. Iterable<ShapeHitbox>? collisions,
  6. double offsetX = 0,
  7. double offsetY = 0,
  8. Map<String, dynamic>? properties,
})

Implementation

TileWithCollision.withAnimation({
  required ControlledUpdateAnimation animation,
  required Vector2 position,
  required Vector2 size,
  String? tileClass,
  this.collisions,
  double offsetX = 0,
  double offsetY = 0,
  Map<String, dynamic>? properties,
}) : super.fromAnimation(
        animation: animation,
        position: position,
        size: size,
        offsetX: offsetX,
        offsetY: offsetY,
        tileClass: tileClass,
        properties: properties,
      );