match_magic/lib/flame_components/sprites.dart
2024-08-02 13:53:40 +03:00

15 lines
312 B
Dart

import 'package:flame/flame.dart';
Future<void> loadImages() async {
final imageNames = [
'crystal1.png',
'crystal2.png',
'crystal3.png',
'crystal4.png',
'crystal5.png',
'crystal6.png',
'crystal7.png',
];
await Future.wait(imageNames.map((name) => Flame.images.load(name)));
}