mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-28 11:27:24 +08:00
17 lines
396 B
Dart
17 lines
396 B
Dart
import 'package:flame/game.dart';
|
|
import 'package:flame_tiled/flame_tiled.dart';
|
|
|
|
class FlameTiledAnimationExample extends FlameGame {
|
|
static const String description = '''
|
|
Loads and displays an animated Tiled map.
|
|
''';
|
|
|
|
late final TiledComponent map;
|
|
|
|
@override
|
|
Future<void> onLoad() async {
|
|
map = await TiledComponent.load('dungeon.tmx', Vector2.all(32));
|
|
add(map);
|
|
}
|
|
}
|