A classic Brick Breaker game implemented in Java using Swing. The game features different difficulty levels that affect the speed of the ball and the number of bricks.
- Features
- Installation
- Usage
- Gameplay
- Contributing
- Classic Gameplay: Control a paddle to bounce a ball and break bricks.
- Score Tracking: Keep track of your score as you break bricks.
- Game Over and Win Conditions: Notifications for game over and winning scenarios with options to restart.
- Prerequisites
- Java Development Kit (JDK) 8 or higher -Steps Clone the Repository
git clone https://github.com/username/repository.git
Replace https://github.com/username/repository.git with the URL of your GitHub repository.
- Navigate to the Project Directory
cd repository
Compile the Code
-Use the following command to compile the Java files:
bash javac Gameplay.java MapGen.java
-Run the Game
- Objective: Break all the bricks on the screen by bouncing the ball with your paddle.
- Start the Game: Launch the application as described in the installation section.
- Control the Paddle: Use the Left and Right arrow keys to move the paddle.
- Restart the Game: Press Enter after a game over or winning screen to restart.
I welcome contributions to improve this project. To contribute:
-
Fork the Repository
-
Create a Feature Branch
-
git checkout -b feature/YourFeature
-
Commit Your Changes
git add .
git commit -m "Add new feature"
- Push to the Branch
git push origin feature/YourFeature
- Create a Pull Request
- Go to the original repository and create a pull request from your feature branch.