mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
move examples to fix warning
This commit is contained in:
14
doc/examples/tiled/lib/main.dart
Normal file
14
doc/examples/tiled/lib/main.dart
Normal file
@ -0,0 +1,14 @@
|
||||
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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user