Bouncy Ball modeled in JavaScript
https://ggrainger.epicpages.dev/bouncy-ball
- JavaScript 68.9%
- CSS 18.7%
- HTML 12.4%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| icons | ||
| .gitattributes | ||
| index.html | ||
| main.js | ||
| README.md | ||
| style.css | ||
Bouncy Ball
JavaScript modelling a bouncy ball. Velocity can be applied to the ball by clicking and dragging on the screen.
The ball can collide with the edges of the screen, and will bounce accordingly.
The balls attributes can be altered at run-time, this includes:
- Mass
- Acceleration due to gravity
- Bounciness
The deployment of this project can be seen here.
Compatibility
Tested with and works on
- Chrome
- Opera
- Firefox (some issues with slowdown)
- Edge