Skip to content

spar65/bouncy-balls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bouncy Balls Animation

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.

Features

  • 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

Setup

  1. Clone the repository:
git clone https://github.com/spar65/bouncy-balls.git
cd bouncy-balls
  1. Serve the files using a local server. For example, using Python:
python -m http.server 8000
  1. Open your browser and navigate to:
http://localhost:8000

Technologies Used

  • HTML5 Canvas
  • JavaScript (ES6+)
  • CSS3

About

This is a simple program that has balls bouncing!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published