Skip to content

A ball bouncing off the screen walls simulation in python using pygame, which is later converted to an executable file using pyinstaller

Notifications You must be signed in to change notification settings

MrDracs/Ball_Bounce_Simulation

Repository files navigation


Ball Bouncing Off Screen Walls Simulation ๐ŸŽฑ

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.

Table of Contents ๐Ÿ“š

Ball Bouncing Simulation

Requirements ๐Ÿ› ๏ธ

  • Python 3.7 or higher ๐Ÿ
  • Pygame library ๐ŸŽฎ
  • PyInstaller โš™๏ธ

Installation ๐Ÿš€

  1. Clone the repository:

    git clone https://github.com/yourusername/ball-bouncing-simulation.git
    cd ball-bouncing-simulation
  2. Install the required Python packages:

    pip install pygame
    pip install pyinstaller

Usage ๐Ÿ’ป

To run the simulation, simply execute the Python script:

python ball_bouncing_simulation.py

Building Executable ๐Ÿ“ฆ

To convert the Python script into an executable file, use PyInstaller:

  1. Navigate to the project directory:

    cd ball-bouncing-simulation
  2. Run PyInstaller:

    pyinstaller --onefile ball_bouncing_simulation.py
  3. 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! ๐ŸŽ‰


About

A ball bouncing off the screen walls simulation in python using pygame, which is later converted to an executable file using pyinstaller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages