A simple and flexible HTML5 and JavaScript powered game engine.
View Project on GitHub Download Pixel.js (v0.9b)
Hooks a function to the specified event.
| Name | Description | 
|---|---|
| event | The name of the event to bind the callback to. | 
| callback | The function to invoke when the event occurs. | 
The events currently supported by the on method are:
Multiple event handlers can be assigned to a single event if desired.
Google Chrome, Mozilla FireFox, Internet Explorer 9+, Opera, Safari.