flame_3d 0.1.0-dev.13 copy "flame_3d: ^0.1.0-dev.13" to clipboard
flame_3d: ^0.1.0-dev.13 copied to clipboard

Experimental 3D support for the Flame Engine

example/lib/main.dart

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');
            },
          );
        },
      },
    ),
  );
}
27
likes
130
points
200
downloads

Publisher

verified publisherflame-engine.org

Weekly Downloads

Experimental 3D support for the Flame Engine

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

Funding

Consider supporting this project:

opencollective.com
github.com
patreon.com

License

MIT (license)

Dependencies

flame, flutter, flutter_gpu, meta, ordered_set, vector_math

More

Packages that depend on flame_3d