mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 20:36:31 +08:00
game widget (#533)
This commit is contained in:
@ -8,8 +8,11 @@ import 'package:flutter/material.dart';
|
||||
import 'player.dart';
|
||||
|
||||
void main() {
|
||||
final game = MyGame();
|
||||
runApp(game.widget);
|
||||
runApp(
|
||||
GameWidget(
|
||||
game: MyGame(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
class MyGame extends BaseGame with MultiTouchDragDetector {
|
||||
|
||||
Reference in New Issue
Block a user