Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/giovananog/breakout-game

A simple breakout game implementation with python Turtle lib
https://github.com/giovananog/breakout-game

breakout-game python turtle

Last synced: 16 days ago
JSON representation

A simple breakout game implementation with python Turtle lib

Awesome Lists containing this project

README

        

# Breakout Game with Turtle

![GitHub repo size](https://img.shields.io/github/repo-size/giovananog/breakout-game?style=for-the-badge)
![GitHub last commit](https://img.shields.io/github/last-commit/giovananog/breakout-game?style=for-the-badge)




Breakout Game Screenshot

> A simple Breakout game implemented in Python using the Turtle graphics library. This game features a player-controlled paddle, a bouncing ball, and breakable walls.

## 🎮 How to Play

1. Run the `main.py` script to start the game.
2. Control the paddle using the `a` (left) and `d` (right) keys.
3. Bounce the ball off the paddle to break the walls.
4. Score points by breaking the walls and avoiding the ball hitting the bottom wall.
5. The game ends when the ball hits the bottom wall three times.

## 📂 Files

- **main.py**: Main script to run the Breakout game.
- **player.py**: Class implementation for the player-controlled paddle.
- **scoreboard.py**: Class implementation for the scoreboard to track the player's score.
- **ball.py**: Class implementation for the bouncing ball.
- **wall.py**: Class implementation for the breakable walls.

## 🛠ī¸ Dependencies

- Python 3
- Turtle graphics library (usually comes with Python)

## 🕹ī¸ Gameplay Details

- **Game Window**: The game window has a black background and measures 600x600 pixels.
- **Controls**: The player can move the paddle using the `a` (left) and `d` (right) keys.
- **Ball Mechanics**: The ball bounces off the walls, paddle, and breakable walls.
- **Scoring**: Score points by breaking the breakable walls.
- **Game Over**: The game ends when the ball hits the bottom wall three times.

## 🚀 Getting Started

To get a local copy up and running, follow these simple steps:

1. **Clone the repository**:
```sh
git clone https://github.com/giovananog/breakout-game.git
```
2. **Navigate to the project directory**:
```sh
cd breakout-game
```
3. **Run the game**:
```sh
python main.py
```

## 🏅 Developed During Python Bootcamp

This Breakout game was developed as part of the 100 Days of Code - The Complete Python Pro Bootcamp ([Course](https://www.udemy.com/course/100-days-of-code/)), a comprehensive course designed to teach Python programming through hands-on projects. This project showcases the skills and concepts learned in the course, including object-oriented programming, graphics with the Turtle library, and game development.