Skip to content
hugeen edited this page Oct 26, 2012 · 4 revisions

BurstJS is a modular lib that give many shortcuts for game developers.

Extend BurstJS

Read the Underscore documentation for more informations

Burst.extend({
    prop: "value",
    method: function() {}
});

Event Bus

Read the EventEmitter2 documentation for more informations

// Add event listener
Burst.on("myEvent", function() {
    console.log('The event was raised!');
});

// Trigger an event
Burst.emit("myEvent");

Images Module

ManipulableImage

var background = new Burst.ManipulableImage("/assets/images/background.png");
var newImageUrl = background.updateHsl({ hue: 0.5 });
Clone this wiki locally