BREAKOUT is a simple 2D animated game developed in Python using the Pygame library. In this classic arcade game, players control a paddle to prevent a ball from falling off the screen while breaking all the blocks. The game includes various power-ups and keeps track of the player's score.
- Control the paddle using your mouse.
- Activate power-ups to enhance gameplay.
- Click to shoot when the power-up is enabled.
Follow these steps to set up the project on your machine:
- Python 3.x installed on your system.
- Git installed (if you want to clone the repository).
-
Clone the GitHub repository to your local machine:
git clone https://github.com/daniyalaamir110/BREAKOUT.git -
Navigate to the project directory:
cd BREAKOUT -
Create a virtual environment:
python -m venv venv
python3 -m venv venv
-
Activate the virtual environment:
venv\Scripts\activate
source venv/bin/activate -
Install the required packages from
requirements.txt:pip install -r requirements.txt
Now that you have set up the project and activated the virtual environment, you can run the game:
python main.py- Move the paddle: Move your mouse horizontally.
- Shoot (with power-up): Left-click.
- Keep the ball from falling off the screen by bouncing it with the paddle.
- Break all the blocks to advance to the next level.
- Collect power-ups to gain advantages like shooting abilities.
- Aim for the highest score possible!
- This game was created by Daniyal Aamir (daniyalaamir110).
Enjoy playing BREAKOUT! Don't forget to give a ⭐