piecemeal 0.3.6

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 83

Piecemeal is a small Dart library of low-level utility types aimed at 2D games. In particular, I harvested it from my roguelike Hauberk.

Using it

Add it to your package's pubspec:

dependencies:
  piecemeal: any

Import it:

import 'package:piecemeal/piecemeal.dart';

Running tests

Piecemeal comes with a unit test suite. From the root directory of piecemeal, run:

dart --checked test/run_all.dart 

0.3.6

  • Add Array2D.fill().

0.3.5

  • Add Rng.shuffle() and Rng.setSeed().

0.3.4

  • Add Line and Circle classes.

0.3.3

  • Add Rng.percent().

0.3.2

  • Add Rect.offset().

0.3.1

  • Fix type error.
  • Use real generic method syntax.

0.3.0

  • Get rid of implicit casts and dynamic.
  • Make Rng.item() and Rng.take() generic methods.
  • Add Rng.float().

0.2.1

  • Make strong mode clean.
  • Fix bug in Rect.clamp().

0.2.0

  • Make constants lowerCamelCase.
  • Remove sign() and clamp() since the Dart core libraries have them now.

0.1.1

  • Add CARDINAL and INTERCARDINAL direction lists to Direction.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  piecemeal: "^0.3.6"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:piecemeal/piecemeal.dart';
        
Version Uploaded Documentation Archive
0.3.6 Dec 17, 2017 Go to the documentation of piecemeal 0.3.6 Download piecemeal 0.3.6 archive
0.3.5 Dec 16, 2017 Go to the documentation of piecemeal 0.3.5 Download piecemeal 0.3.5 archive
0.3.4 Nov 23, 2017 Go to the documentation of piecemeal 0.3.4 Download piecemeal 0.3.4 archive
0.3.3 Oct 1, 2017 Go to the documentation of piecemeal 0.3.3 Download piecemeal 0.3.3 archive
0.3.2 Sep 16, 2017 Go to the documentation of piecemeal 0.3.2 Download piecemeal 0.3.2 archive
0.3.1 Sep 10, 2017 Go to the documentation of piecemeal 0.3.1 Download piecemeal 0.3.1 archive
0.3.0 Jan 4, 2017 Go to the documentation of piecemeal 0.3.0 Download piecemeal 0.3.0 archive
0.2.1 Oct 27, 2015 Go to the documentation of piecemeal 0.2.1 Download piecemeal 0.2.1 archive
0.2.0 Oct 23, 2015 Go to the documentation of piecemeal 0.2.0 Download piecemeal 0.2.0 archive
0.1.1 Aug 16, 2014 Go to the documentation of piecemeal 0.1.1 Download piecemeal 0.1.1 archive

All 11 versions...

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
67 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
83

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:piecemeal/piecemeal.dart.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use piecemeal.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.0 <2.0.0
Dev dependencies
test any