simplegamelib 0.0.16 simplegamelib: ^0.0.16 copied to clipboard
A small and easy to use package for 2D HTML5 Canvas games.
simplegamelib #
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