mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-16 12:48:19 +08:00
game widget (#533)
This commit is contained in:
@@ -15,7 +15,11 @@ import './square.dart';
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Flame.util.fullScreen();
|
||||
runApp(MyGame().widget);
|
||||
runApp(
|
||||
GameWidget(
|
||||
game: MyGame(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
class MyGame extends BaseGame with TapDetector {
|
||||
|
||||
Reference in New Issue
Block a user