Skip to content

daniyalaamir110/BREAKOUT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 BREAKOUT - Python Game

ℹ️ About

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.

🎮 Gameplay Features

  • Control the paddle using your mouse.
  • Activate power-ups to enhance gameplay.
  • Click to shoot when the power-up is enabled.

🖥️ Setup

Follow these steps to set up the project on your machine:

✅ Prerequisites

  • Python 3.x installed on your system.
  • Git installed (if you want to clone the repository).

🖥️ Installation

  1. Clone the GitHub repository to your local machine:

    git clone https://github.com/daniyalaamir110/BREAKOUT.git
    
  2. Navigate to the project directory:

    cd BREAKOUT
    
  3. Create a virtual environment:

    Windows

    python -m venv venv

    Linux/macOS

    python3 -m venv venv
  4. Activate the virtual environment:

    Windows

    venv\Scripts\activate

    Linux/macOS

    source venv/bin/activate
  5. Install the required packages from requirements.txt:

    pip install -r requirements.txt

😃 Run the Game

Now that you have set up the project and activated the virtual environment, you can run the game:

python main.py

🎮 Controls

  • Move the paddle: Move your mouse horizontally.
  • Shoot (with power-up): Left-click.

ℹ️ Gameplay Instructions

  • 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!

🎮 Gameplay

▶️ Level 1

Level 1

▶️ Level 2

Level 2

▶️ Level 3

Level 3

🥇 Credits

Enjoy playing BREAKOUT! Don't forget to give a ⭐

About

A simple 2D BREAKOUT game built using Pygame (Python) ✨

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages