mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
game widget (#533)
This commit is contained in:
@ -8,7 +8,11 @@ import 'package:flutter/material.dart';
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
runApp(MyGame().widget);
|
||||
runApp(
|
||||
GameWidget(
|
||||
game: MyGame(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
class MyGame extends BaseGame {
|
||||
|
||||
Reference in New Issue
Block a user