tetris_engine 1.2.0
tetris_engine: ^1.2.0 copied to clipboard
A complete, customizable Tetris engine for Flutter: Guideline rules (SRS, 7-bag, hold, lock delay, T-Spins), themes, touch and keyboard controls, replays and save/restore.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add tetris_engineThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
tetris_engine: ^1.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:tetris_engine/tetris_engine.dart';