mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-13 03:10:42 +08:00
game widget (#533)
This commit is contained in:
@@ -5,7 +5,11 @@ import 'package:flutter/services.dart';
|
||||
|
||||
import 'dart:ui';
|
||||
|
||||
void main() => runApp(MyGame().widget);
|
||||
void main() => runApp(
|
||||
GameWidget(
|
||||
game: MyGame(),
|
||||
),
|
||||
);
|
||||
|
||||
class MyGame extends Game with KeyboardEvents {
|
||||
static final Paint _white = Paint()..color = const Color(0xFFFFFFFF);
|
||||
|
||||
Reference in New Issue
Block a user