Clone of the 80s hit game Breakout using Python Turtle. The game consists of several components, each implemented in a separate Python file.
Table of Contents
- Control a paddle at the bottom of the screen with left and right arrow keys.
- Pause the game by pressing the space bar.
- Earn points by breaking bricks and try to achieve the highest score.
- Different color bricks, yellow, green, orange and red, have different values.
- Bounce the ball to destroy bricks, and increase your score.
- Levels of difficulty (ball speed) increases as you play to challenge your skills.
- Interactive scoreboard to track your progress. Level, Score and Lives.
- At the end of the game the Highest High-Score is saved.
- Python 3.x installed on your machine.
- (Optional) A virtual environment for isolated dependencies.
- Clone this repository:
git clone https://github.com/Garschke/breakout.git
- (Optional) Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate # On Windows use: .venv\Scripts\activate
- Install dependencies (if any):
pip install -r requirements.txt
- Run the breakout.py file:
python3 breakout.py # Mac & Linux
python breakout.py # PC
- Use the ⬅️ left and right ➡️ arrow keys to move the paddle and prevent the ball from dropping off the screen, and losing a life.
- Break all of the bricks on the screen with the ball to level-up and advance on to the next Level, and gain additional lives.
- Try to achieve the highest score possible by strategically bouncing the ball and breaking the bricks.
- If the ball misses the paddle and hits the bottom of the screen, you lose a life. The game continues until you have no lives left.
- Temporarily pause the game play by pressing the space bar, and resume the play by pressing the space bar a second time.
- When the game is over if you beat the current high-score, your new high-score will be saved in the game.
Contributions are welcome!
- Create your feature branch: git checkout -b feature/NewFeature
- Commit your changes: git commit -m 'Add new feature'
- Push to the branch: git push origin feature/NewFeature
- Open a pull request.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
- Python Turtle Graphics - The graphics library used for creating the game.
- Wikipedia - Breakout (video game) - Background information on the Breakout game.