PixelTile.single constructor

PixelTile.single(
  1. PixelArt art, {
  2. bool collision = false,
  3. String? tileClass,
  4. Map<String, dynamic>? properties,
})

A static tile, drawn from a single PixelArt.

Implementation

PixelTile.single(
  PixelArt art, {
  this.collision = false,
  this.tileClass,
  this.properties,
})  : frames = [art],
      stepTime = 0;