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:
@ -12,7 +12,11 @@ import 'package:flutter/material.dart';
|
||||
|
||||
void main() async {
|
||||
final Vector2 size = await Flame.util.initialDimensions();
|
||||
runApp(MyGame(size).widget);
|
||||
runApp(
|
||||
GameWidget(
|
||||
game: MyGame(size),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
TextConfig regular = TextConfig(color: BasicPalette.white.color);
|
||||
|
||||
Reference in New Issue
Block a user