bullseye2d 2.0.2
bullseye2d: ^2.0.2 copied to clipboard
A cross-platform 2D game library for Dart that supports a WebGL2 backend as well as native support for Windows, Mac and Linux via SDL3.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate bullseye2dUse it
The package has the following executables:
$ bullseye2d
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add bullseye2dWith Flutter:
$ flutter pub add bullseye2dThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
bullseye2d: ^2.0.2Alternatively, 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:bullseye2d/bullseye2d.dart';