readMap method

  1. @override
Future<SpritefusionMap> readMap()
override

Implementation

@override
Future<SpritefusionMap> readMap() async {
  String data = await rootBundle.loadString(_path);
  return SpritefusionMap.fromJson(data)
    ..imgPath = '${basePath}spritesheet.png';
}