This project demonstrates a simple ball bouncing off the screen walls simulation using Pygame. The ball moves around the screen, bouncing off the edges, simulating realistic movement and collisions.
- Python 3.7 or higher 🐍
- Pygame library 🎮
- PyInstaller ⚙️
-
Clone the repository:
git clone https://github.com/yourusername/ball-bouncing-simulation.git cd ball-bouncing-simulation
-
Install the required Python packages:
pip install pygame pip install pyinstaller
To run the simulation, simply execute the Python script:
python ball_bouncing_simulation.py
To convert the Python script into an executable file, use PyInstaller:
-
Navigate to the project directory:
cd ball-bouncing-simulation
-
Run PyInstaller:
pyinstaller --onefile ball_bouncing_simulation.py
-
After the build process is complete, you can find the executable in the
dist
folder.
Feel free to reach out if you have any questions or need further assistance! 😊
Happy coding! 🎉