flame_multiplayer 0.1.0
flame_multiplayer: ^0.1.0 copied to clipboard
Two players on two machines for a game: a room with a handshake and separate channels, rollback play in step, turns with a replay for the one watching, and a ghost's latest word in a race.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flame_multiplayerWith Flutter:
$ flutter pub add flame_multiplayerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
flame_multiplayer: ^0.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flame_multiplayer/flame_multiplayer.dart';