flame_tiled_utils library

Features:

Merge a layer of tiled map into component to render as single image. See ImageBatchCompiler.

Map each tile to dart class or process function using "Type" parameter as key See TiledComponent.

Extract animation from tiles, allows to render maps with animated tiles. Use TiledComponent and it's utility functions.

Merge animated tiles of same type into one big SpriteAnimation component. Use combination of TiledComponent and AnimationBatchCompiler

Classes

AnimationBatchCompiler
Utility class to merge multiple animated components into one big component Usage example:
ImageBatchCompiler
Utility class to compile multiple tiles into one image. Usage example:
ImageCompositionExt
Clone of the ImageComposition because it is not designed fine enough to accept inheritance
TileProcessor
Utility class allows to process each map tile individually Usage example:

Typedefs

TileProcessorFunc = Future Function(TileProcessor tile, Vector2 position, Vector2 size)