hexagon_core 1.0.0-beta.1
hexagon_core: ^1.0.0-beta.1 copied to clipboard
Pure Dart hexagonal grid math: axial, cube, offset and doubled coordinates, pixel layouts, map shapes, pathfinding, reachability and field of view.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add hexagon_coreWith Flutter:
$ flutter pub add hexagon_coreThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
hexagon_core: ^1.0.0-beta.1Alternatively, 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:hexagon_core/hexagon_core.dart';