mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
game widget (#533)
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flame/gestures.dart';
|
||||
import 'package:flame/palette.dart';
|
||||
|
||||
void main() {
|
||||
final game = MyGame();
|
||||
runApp(game.widget);
|
||||
runApp(
|
||||
GameWidget(
|
||||
game: MyGame(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// Includes an example mixing two advanced detectors
|
||||
|
||||
Reference in New Issue
Block a user