quintus
v0.2.0
Published
The Quintus game engine enhanced for use with Browserify
Downloads
5
Maintainers
Readme
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