simplegamelib 0.0.2

  • Readme
  • Changelog
  • Installing
  • --

simplegamelib #

Heads Up - this is a very early release!

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

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


Features and bugs #

Github : TODO

To run unit tests. #

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

Changelog #

0.0.1 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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

  simplegamelib: ^0.0.2

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';
Awaiting analysis to complete.