TileWithCollision.withAnimation constructor
TileWithCollision.withAnimation({
- required ControlledUpdateAnimation animation,
- required Vector2 position,
- required Vector2 size,
- String? tileClass,
- Iterable<
ShapeHitbox> ? collisions, - double offsetX = 0,
- double offsetY = 0,
- 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,
);