tileListBelow method

Iterable<Tile> tileListBelow()

Method that checks what map tiles is below

Implementation

Iterable<Tile> tileListBelow() {
  if (!hasGameRef) return [];
  final map = gameRef.map;
  if (map.tiles.isNotEmpty) {
    return map.getRendered().where((element) {
      return (element.overlaps(rectConsideringCollision) &&
          (element.properties != null));
    });
  }
  return [];
}