flame_3d 0.1.0-dev.13
flame_3d: ^0.1.0-dev.13 copied to clipboard
Experimental 3D support for the Flame Engine
import 'package:example/commands/commands.dart';
import 'package:example/example_game_3d.dart';
import 'package:flame/game.dart';
import 'package:flame_console/flame_console.dart';
import 'package:flutter/widgets.dart';
void main() {
runApp(
GameWidget.controlled(
gameFactory: ExampleGame3D.new,
overlayBuilderMap: {
'console': (BuildContext context, ExampleGame3D game) {
return FlameConsoleView(
game: game,
customCommands: customCommandProviders.map((it) => it()).toList(),
onClose: () {
game.overlays.remove('console');
},
);
},
},
),
);
}