simplegamelib 0.0.16

  • Installing
  • Versions
  • 0


Build Status

An easy to use package for simple sprite driven web 2D games.


Usage example:

import 'dart:html';
import 'package:simplegamelib/simplegamelib.dart';

void main() {
  Game game = new Game("My Game", '#surface');
  Sprite player = game.createSprite("images/ninjadude.png");

    ..position = new Point(0, 10)
    ..movement = Movements.east;
  print('starting game...');

Features and bugs

Github :

To run unit tests.

pub run test ./test/simplegamelib_test.dart -p dartium



  • Updates for Dart 2.0.


  • Updates for Strong Mode DDC.
  • New setPosition method on Sprite.


  • Dependency updates and use of new generics.


  • Fix rendering issue where background increasingly redrawn when game restarted.
  • Refactoring.
  • More tests.
  • Custom background drawing function.


  • Improved Player and Sprite lifecycle.
  • Game now has a stop method.
  • Sprite now has a property called speed.


  • Added color property to background.
  • Added Collectible class.
  • Bug fixes for SpriteGroup - canvas not set on Sprites if null.


  • Bug Fixes.
  • Improved documentation comments.
  • Sprite objects now have an obstacle list.
  • SpriteGroup and sprite can now detect collision from a Rectangle.
  • Added more Movements presets.


  • Bug fix for width and height in Sprite constructor.
  • Improved documentation comments.


  • Sprite now has setters for x y.
  • Sprite now has a limit Rectangle.
  • Sprite now requires width and height for creation.
  • Sprite now has stop method.
  • SpriteGroup updated with Sprite changes.
  • General documentation improvements.


  • Added AudioBank class for loading and playing sounds.
  • Improved Renderer to have area limits.
  • Game now has a default collectables SpriteGroup.
  • Improved tests and documentation.


  • Added default keyboard handling for player to Game object.
  • Started Player object which currently holds a field for the player's sprite object.


  • Added more comments to the sprite group object.
  • Added test and method to allow a SpriteGroup to be reversed.


  • Added more comments to Game object.
  • Added optional custom update hook to simplify demos.


  • Added URL of homepage for package.


  • HomepageUrl in Readme updated.
  • Print statement commented out.


  • Initial version to allow Demo 1 to use pub version rather than local.

Use this package as a library

1. Depend on it

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

  simplegamelib: ^0.0.16

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:simplegamelib/simplegamelib.dart';
Version Uploaded Documentation Archive
0.0.16 Jul 16, 2017 Go to the documentation of simplegamelib 0.0.16 Download simplegamelib 0.0.16 archive
0.0.15 Jun 10, 2017 Go to the documentation of simplegamelib 0.0.15 Download simplegamelib 0.0.15 archive
0.0.14 Dec 8, 2016 Go to the documentation of simplegamelib 0.0.14 Download simplegamelib 0.0.14 archive
0.0.13 May 7, 2016 Go to the documentation of simplegamelib 0.0.13 Download simplegamelib 0.0.13 archive
0.0.12 Nov 5, 2015 Go to the documentation of simplegamelib 0.0.12 Download simplegamelib 0.0.12 archive
0.0.11 Oct 26, 2015 Go to the documentation of simplegamelib 0.0.11 Download simplegamelib 0.0.11 archive
0.0.10 Oct 17, 2015 Go to the documentation of simplegamelib 0.0.10 Download simplegamelib 0.0.10 archive
0.0.9 Oct 17, 2015 Go to the documentation of simplegamelib 0.0.9 Download simplegamelib 0.0.9 archive
0.0.8 Oct 16, 2015 Go to the documentation of simplegamelib 0.0.8 Download simplegamelib 0.0.8 archive
0.0.7 Oct 9, 2015 Go to the documentation of simplegamelib 0.0.7 Download simplegamelib 0.0.7 archive

All 16 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see

Maintenance issues and suggestions

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0-dev.infinity