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.
- Run the
main.py
script to start the game. - Control the paddle using the
a
(left) andd
(right) keys. - Bounce the ball off the paddle to break the walls.
- Score points by breaking the walls and avoiding the ball hitting the bottom wall.
- The game ends when the ball hits the bottom wall three times.
- 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.
- Python 3
- Turtle graphics library (usually comes with Python)
- Game Window: The game window has a black background and measures 600x600 pixels.
- Controls: The player can move the paddle using the
a
(left) andd
(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.
To get a local copy up and running, follow these simple steps:
- Clone the repository:
git clone https://github.com/giovananog/breakout-game.git
- Navigate to the project directory:
cd breakout-game
- Run the game:
python main.py
This Breakout game was developed as part of the 100 Days of Code - The Complete Python Pro Bootcamp (Course), 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.