Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

View Project on GitHub Download Pixel.js (v0.9b)

Entity.onCollide Method

Registers the callback to be invoked when the entity has collided with another entity.

Remarks

The parameter passed to the function is the entity that caused the collision.

Examples

Supported Platforms

Google Chrome, Mozilla FireFox, Internet Explorer 9+, Opera, Safari.