Skip to content
A simple game lib for HTML5 Canvas games in Dart
Dart
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
analysis_options.yaml
pubspec.yaml

README.md

simplegamelib

Build Status

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

Usage

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
You can’t perform that action at this time.