TileWithCollision constructor

TileWithCollision({
  1. required String spritePath,
  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({
  required String spritePath,
  required Vector2 position,
  required Vector2 size,
  String? tileClass,
  this.collisions,
  double offsetX = 0,
  double offsetY = 0,
  Map<String, dynamic>? properties,
}) : super(
        spritePath: spritePath,
        position: position,
        size: size,
        tileClass: tileClass,
        offsetX: offsetX,
        offsetY: offsetY,
        properties: properties,
      );