phaser 2.9.4

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 15

dart_phaser

Pub

Dart bindings for Phaser CE.

API Documentation

[Live Example](https://thosakwe.github.io/dart_phaser Credit to Sithjester for the "Arabian Boy" spritesheet.

Notes

  • This package now also bundles with built versions of Phaser, i.e. package:phaser/phaser.js.
  • ANY class that conflicts with the name of a PIXI class has been renamed. Ex. Sprite -> PhaserSprite.

2.9.4-beta

  • Updated to Phaser CE 2.9.4.
  • Made the package strong-mode compatible.
  • This package now also bundles with built versions of Phaser, i.e. package:phaser/phaser.js.
  • ANY class that conflicts with the name of a PIXI class has been renamed. Ex. Sprite -> PhaserSprite.

Use this package as a library

1. Depend on it

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


dependencies:
  phaser: ^2.9.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:phaser/phaser.dart';
  
Version Uploaded Documentation Archive
2.9.4 Jan 3, 2018 Go to the documentation of phaser 2.9.4 Download phaser 2.9.4 archive
2.6.2 Dec 28, 2016 Go to the documentation of phaser 2.6.2 Download phaser 2.6.2 archive
2.9.4-beta Jan 3, 2018 Go to the documentation of phaser 2.9.4-beta Download phaser 2.9.4-beta archive
2.6.2-beta+1 Dec 28, 2016 Go to the documentation of phaser 2.6.2-beta+1 Download phaser 2.6.2-beta+1 archive
2.6.2-beta Dec 27, 2016 Go to the documentation of phaser 2.6.2-beta Download phaser 2.6.2-beta archive
Popularity:
Describes how popular the package is relative to other packages. [more]
14
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
15
Learn more about scoring.

We analyzed this package on Dec 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms:

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.1.0.
 
 Because phaser depends on func any which requires SDK version >=1.9.0 <2.0.0, version solving failed.

Health suggestions

Format lib/box2d.dart.

Run dartfmt to format lib/box2d.dart.

Format lib/microsoft.dart.

Run dartfmt to format lib/microsoft.dart.

Format lib/p2.dart.

Run dartfmt to format lib/p2.dart.

Fix additional 5 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/phaser.comments.dart (Run dartfmt to format lib/phaser.comments.dart.)
  • lib/phaser.dart (Run dartfmt to format lib/phaser.dart.)
  • lib/phaser_box2d.dart (Run dartfmt to format lib/phaser_box2d.dart.)
  • lib/pixi.comments.dart (Run dartfmt to format lib/pixi.comments.dart.)
  • lib/pixi.dart (Run dartfmt to format lib/pixi.dart.)

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

The description is too short. (-20 points)

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

Maintain an example. (-10 points)

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 phaser.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0