0.2.0 • Published 10 years ago

quintus v0.2.0

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

Quintus + Browserify

This is an npm-friendly and browserified fork of Quintus.

Install

$ npm install seanewest/quintus

Usage

The only difference is how you require the Quintus engine and modules.

Here is a very simple module file:

module.exports = function(Q) {
  Q.gravityY = 0;
}

And here is how you can load this module into your main Quintus setup

var Quintus = require('quintus')
Quintus.MyModule = require('./my-module')

window.addEventListener('load',function() {
  var Q = Quintus().include("Sprites, Scenes, Input, Anim, 2D")
                   .include("MyModule")
                   .setup({ width: 320, height: 416 });
}

Examples

To run the examples first install beefy:

$ npm install -g beefy

Then you can run each example like so:

$ cd examples/ball
$ beefy ball.js --open

License

MIT / GPLv2