mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
added ensureInitialized call on examples that were not working without it
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
import 'package:flame/components/tiled_component.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:flame/flame.dart';
|
||||
import 'package:flame/animation.dart';
|
||||
import 'package:flame/components/animation_component.dart';
|
||||
import 'package:flame/components/tiled_component.dart';
|
||||
import 'package:flame/flame.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:flutter/widgets.dart' hide Animation;
|
||||
import 'package:tiled/tiled.dart' show ObjectGroup, TmxObject;
|
||||
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
Flame.images.load('coins.png');
|
||||
final TiledGame game = TiledGame();
|
||||
runApp(game.widget);
|
||||
|
||||
Reference in New Issue
Block a user