Skip to content

lainceline/pybreak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breakout Clone

A simple clone of the classic Breakout game implemented in Python using the pygame library.

Table of Contents

Overview

This project is a clone of the classic arcade game Breakout. The objective of the game is to destroy all the bricks by bouncing a ball off a paddle controlled by the player.

Installation

  1. Clone the repository:

    git clone https://github.com/lainceline/pybreak.git
    cd pybreak
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate    # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install pygame

Usage

To run the game, execute the following command:

python main.py

Use the left and right arrow keys to move the paddle and prevent the ball from falling off the screen.

Running Tests

To run the tests, execute the following command:

python -m unittest discover

The tests cover basic functionalities such as paddle movement, ball collision with walls, paddle, and bricks.

Contributing

Contributions are welcome! If you have any suggestions or improvements, feel free to create a pull request or open an issue.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Simple python breakout clone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages