Bouncy Ball modeled in JavaScript https://ggrainger.epicpages.dev/bouncy-ball
  • JavaScript 68.9%
  • CSS 18.7%
  • HTML 12.4%
Find a file
ggrainger a950aae187
All checks were successful
Publish / publish (push) Successful in 5s
Update README.md
2026-06-14 16:18:08 +00:00
.forgejo/workflows Add pages build 2026-05-31 00:24:23 +01:00
icons Make ball attribute editable 2020-08-03 22:45:10 +01:00
.gitattributes Initial commit 2020-07-29 09:17:22 +01:00
index.html Make ball attribute editable 2020-08-03 22:45:10 +01:00
main.js Fix some typos and add compatibility to readme 2020-08-15 23:11:34 +01:00
README.md Update README.md 2026-06-14 16:18:08 +00:00
style.css Fix some typos and add compatibility to readme 2020-08-15 23:11:34 +01:00

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