Fork me on GitHub

Ball.js - v2.0

v2.0 - Work in progress, more features to come for this version !

Ball.js is a Javascript class that handles physics interactions between balls (i.e. collisions) on a flat area as well as rendering.

You can render in canvas mode as well as in html mode.

You have a bunch of display effects such as glowing, blinking, exploding (changing the radius, color, alpha) ...

I made an HTML5/Javascript game based on this class. You can see it in action on http://bombs.topheman.com

There you can try the demos :

This class could be used in all kinds of animations and games such as pool billard or air hockey ...


V2 - changelog :


Help needed

copyright © 2012 Christophe Rosset (Topheman), released under Creative Commons Licence Creative Commons