Skip to content

A simple breakout game implementation with python Turtle lib

Notifications You must be signed in to change notification settings

giovananog/breakout-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breakout Game with Turtle

GitHub repo size GitHub last commit



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:
    git clone https://github.com/giovananog/breakout-game.git
  2. Navigate to the project directory:
    cd breakout-game
  3. Run the game:
    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), 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.

About

A simple breakout game implementation with python Turtle lib

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages