A simple HTML5 Canvas animation featuring bouncing balls with realistic physics. The balls bounce off the walls and each other using elastic collision detection and response.
- Multiple colored balls (red, blue, green, orange, and white)
- Realistic physics with elastic collisions
- Ball-to-ball collision detection
- Wall collision detection
- Mass-based collision response
- Clone the repository:
git clone https://github.com/spar65/bouncy-balls.git
cd bouncy-balls- Serve the files using a local server. For example, using Python:
python -m http.server 8000- Open your browser and navigate to:
http://localhost:8000
- HTML5 Canvas
- JavaScript (ES6+)
- CSS3