Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/topheman/ball.js
Ball.js is a Javascript class that handles physics interactions between balls (i.e. collisions) on a flat area as well as rendering.
https://github.com/topheman/ball.js
Last synced: about 2 months ago
JSON representation
Ball.js is a Javascript class that handles physics interactions between balls (i.e. collisions) on a flat area as well as rendering.
- Host: GitHub
- URL: https://github.com/topheman/ball.js
- Owner: topheman
- License: mit
- Created: 2012-04-01T09:46:50.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-25T14:38:29.000Z (over 11 years ago)
- Last Synced: 2024-04-08T00:39:38.292Z (9 months ago)
- Language: JavaScript
- Homepage: http://labs.topheman.com/Ball/
- Size: 2.46 MB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Ball.js
v1.0
Ball.js is a Javascript class that handles **physics interactions** between balls on a flat area (i.e. collisions) 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 [Topheman Bombs](http://bombs.topheman.com)
You can [see the examples live](http://labs.topheman.com/Ball) (source code on github repository)
This class could be used in all kinds of animations and games such as pool billard or air hockey ...
##[See Ball.js API](https://github.com/topheman/Ball.js/blob/master/Wiki.md)
##Files to include :
To use Ball.js, you only have to include Vector2D.js (a js implementation of the java class) and my own class : Ball.js :```html
```
##Improvements todo :
* Include Vector2D inside Ball.js to optimize garbage collection
copyright © 2012 Christophe Rosset (Topheman), released under [MIT LICENSE](https://github.com/topheman/Ball.js/blob/master/LICENSE)