Tiled

Tiled is an great tool to design levels and maps.

Flame provides a package (flame_tiled) which bundles a dart package that allows you to parse tmx (xml) files and access the tiles, objects and everything in there.

Flame also provides a simple Tiled class and its component wrapper TiledComponent, for the map rendering, which renders the tiles on the screen and supports rotations and flips.

At its simplest, layers can be retrieved from a Tilemap by invoking:

getLayer<ObjectGroup>("myObjectGroupLayer");
getLayer<ImageLayer>("myImageLayer");
getLayer<TileLayer>("myTileLayer");
getLayer<Group>("myGroupLayer");

These methods will either return the requested layer type or null if it does not exist.

Other advanced features are not yet supported, but you can easily read the objects and other features of the tmx and add custom behaviour (eg regions for triggers and walking areas, custom animated objects).

You can check a working example here.