Skip to content

BurstJS

hugeen edited this page · 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 });
Something went wrong with that request. Please try again.