match_magic/lib/game/sprite_loader.dart
2024-08-05 11:04:54 +03:00

12 lines
267 B
Dart

import 'package:flame/components.dart';
class SpriteLoader {
static Future<List<Sprite>> loadSprites() async {
List<Sprite> sprites = [];
for (int i = 1; i <= 7; i++) {
sprites.add(await Sprite.load('crystal$i.png'));
}
return sprites;
}
}