A simple clone of the classic Breakout game implemented in Python using the pygame library.
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.
-
Clone the repository:
git clone https://github.com/lainceline/pybreak.git cd pybreak -
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install pygame
To run the game, execute the following command:
python main.pyUse the left and right arrow keys to move the paddle and prevent the ball from falling off the screen.
To run the tests, execute the following command:
python -m unittest discoverThe tests cover basic functionalities such as paddle movement, ball collision with walls, paddle, and bricks.
Contributions are welcome! If you have any suggestions or improvements, feel free to create a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.