Python simulation featuring a dynamically interactive bouncing ball. The simulation demonstrates a ball that bounces, grows in size, and accelerates each time it hits the boundary of a surrounding circle, showcasing basic principles of physics and object interaction within a defined environment.
game.mp4
- Collision Detection: The simulation detects collisions between the ball and the circular boundary.
- Dynamic Response: Post-collision, the ball increases in size, and the speed of its movement accelerates.
- Gravity Effect: The simulation includes a gravity effect influencing the ball's movement.
Ensure you have the following prerequisites installed on your system:
- Python version 3.x
- Pygame library (which can be installed using
pip install pygame
)
Clone this repository locally by running:
git clone https://github.com/yourusername/bouncing-ball-simulation.git
cd bouncing-ball-simulation
After cloning the repository, you can run the simulation using the following command in the terminal:
python main.py