mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
15 lines
297 B
Dart
15 lines
297 B
Dart
import 'package:flame/components/tiled_component.dart';
|
|
import 'package:flame/game.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
void main() {
|
|
var game = new TiledGame();
|
|
runApp(game.widget);
|
|
}
|
|
|
|
class TiledGame extends BaseGame {
|
|
TiledGame() {
|
|
add(new TiledComponent('map.tmx'));
|
|
}
|
|
}
|