-
Notifications
You must be signed in to change notification settings - Fork 15
BurstJS
hugeen edited this page Oct 26, 2012
·
4 revisions
BurstJS is a modular lib that give many shortcuts for game developers.
Read the Underscore documentation for more informations
Burst.extend({
prop: "value",
method: function() {}
});
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");
var background = new Burst.ManipulableImage("/assets/images/background.png");
var newImageUrl = background.updateHsl({ hue: 0.5 });