Skip to content
A simple gamecycle engine.
JavaScript HTML
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.
test
.gitignore
.npmignore
Blit.js
LICENSE
README.md
package.json

README.md

Blit

A simple gamecycle engine.

Installation

npm install properjs-blit --save-dev

Usage

var Blit = require( "properjs-blit" );

var blit = new Blit({
    // Default is 60
    fps: 60,
    
    // Default is true
    paused: true,
    
    // Handle blits
    blit: function ( f ) {
        // Do stuff here
        // f === current frame number
    }
    
}).start();

// Or you can chain the blits
var blit = new Blit().blit(function ( f ) {
    // Do stuff here
    // f === current frame number

}).start();

// Also
blit.pause();
blit.play();
blit.stop();
You can’t perform that action at this time.