15 lines
312 B
Dart
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)));
|
|
}
|