flame_shells 0.0.1 copy "flame_shells: ^0.0.1" to clipboard
flame_shells: ^0.0.1 copied to clipboard

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
  }
}
8
likes
40
pub points
0%
popularity

Publisher

verified publisherflame-engine.org

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flame, flutter, meta

More

Packages that depend on flame_shells