This is a Python program using Pygame to simulate bouncing circles. The program includes various functionalities such as collision detection, particle effects, sound effects, color changing, and a checkbox to activate/deactivate collision between circles.
- Make sure you have Python installed. You can download it from python.org.
- Clone this repository:
git clone https://github.com/your_username/bouncing-circles.git
- Navigate to the project directory:
cd bouncing-circles
- Install the required dependencies:
pip install -r requirements.txt
Run the Python script bouncing_circles.py
:
python bouncing_circles.py
- Bouncing Circles: Two circles (blue and green) bounce around the screen.
- Collision Detection: Circles collide with each other and the outer red circle.
- Color Changing: Press 'B' to change the color of the blue circle and 'G' to change the color of the green circle.
- Checkbox: Activate or deactivate collision between the blue and green circles.
- Particle Effects: Particle effects are created upon collision.
- Sound Effects: Sound effect plays upon collision.
- bouncing_circles.py: Python script containing the main program.
- collision.mp3: Sound effect file for collision.
- requirements.txt: List of Python dependencies.
- .gitignore: File to specify which files and directories to ignore in version control.