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