flame_shells 0.0.1

Flutter Android iOS

Beautiful and easy to use widgets that emulates console shells for your Flame game

Flame Shells #

Beautiful and easy to use widgets that emulates console shells for your Flame game.

Right now this package bundles only a single shell, emulating classic portable consoles from early 90s, featuring a direction pad and two action buttons.

How to use #

import 'package:flame_shells/flame_shells.dart';

void main() async {
  final game = MyGame();
  final shell = FlameShell(game: game);
  runApp(shell);
}

class MyGame extends Game with HasShellControls {
  @override
  void onShellButtonTapDown(button) {
    // handle tap down
  }

  @override
  void onShellButtonTapUp(button) {
    // handle tap up
  }
}
2
likes
80
pub points
0%
popularity

Publisher

flame-engine.org

Beautiful and easy to use widgets that emulates console shells for your Flame game

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flame, flutter, meta

More

Packages that depend on flame_shells