A fun browser animation of a couple of bouncing balls using p5.js
- Spawn random bouncers
- count bouncers
- collision with wall
- new bouncer where the user clicks
- collision with each other
- bouncers burst when they break
- add gravity
- embed into website
- make bouncing and collision sounds
- generate a nice background in canvas
- publish to github pages
For projects with media files, use a local server:
# Using Python
python -m http.server 8000
# Using Node.js
npx http-server
# Using VS Code Live Server extension
# Right-click index.html -> "Open with Live Server"