TileWithCollision.fromSprite constructor
TileWithCollision.fromSprite({})
Implementation
TileWithCollision.fromSprite({
required Sprite? sprite,
required Vector2 position,
required Vector2 size,
String? tileClass,
this.collisions,
double offsetX = 0,
double offsetY = 0,
Color? color,
Map<String, dynamic>? properties,
}) : super.fromSprite(
sprite: sprite,
position: position,
size: size,
tileClass: tileClass,
offsetX: offsetX,
offsetY: offsetY,
properties: properties,
color: color,
);