simplegamelib 0.0.14

simplegamelib

Heads Up - this is an early release!

Build Status

An easy to use package for 2D games. It is going to be awesome.

Usage

A simple 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");

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

Features and bugs

Github : https://github.com/daftspaniel/simplegamelib

To run unit tests.

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

Changelog

0.0.14

  • Dependency updates and use of new generics.

0.0.13

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

0.0.12

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

0.0.11

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

0.0.10

  • 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.

0.0.9

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

0.0.8

  • 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.

0.0.7

  • 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.

0.0.6

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

0.0.5

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

0.0.4

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

0.0.3

  • Added URL of homepage for package.

0.0.2

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

0.0.1

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

1. Depend on it

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

dependencies:
  simplegamelib: "^0.0.14"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support pub. 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';

About

An easy to use package for 2D HTML5 Canvas games.

Author

Email daftspaniel@gmail.com Davy Mitchell

Homepage

goo.gl/5ioguA

Documentation

www.dartdocs.org/documentation/simplegamelib/0.0.14/

Source code (hyperlinked)

www.crossdart.info/p/simplegamelib/0.0.14/

Uploader

daftspaniel@gmail.com

Share