-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
# BrickBreaker | ||
# Brick Breaker Game | ||
|
||
This is a simple Brick Breaker game implemented in Java using Swing. | ||
|
||
## How to Run | ||
|
||
1. Make sure you have Java installed on your system. | ||
2. Clone this repository to your local machine. | ||
|
||
```bash | ||
git clone https://github.com/trungddao/brick-breaker.git | ||
``` | ||
|
||
3. Compile and run the Main class. | ||
|
||
```bash | ||
cd brick-breaker | ||
javac Main.java | ||
java Main | ||
``` | ||
|
||
4. Use the left and right arrow keys to control the paddle and prevent the ball from going out of bounds. | ||
|
||
## Gameplay | ||
|
||
- The objective of the game is to prevent the ball from going out of bounds. | ||
- Move the paddle using the left and right arrow keys. | ||
- The ball will bounce off the walls and the paddle. | ||
- Score points by keeping the ball in play. | ||
|
||
## Customization | ||
|
||
Feel free to customize the game or enhance the gameplay based on your preferences. The code is open for modification and improvement. | ||
|
||
## Acknowledgments | ||
|
||
- The game was created as a simple project to demonstrate Java Swing and game development concepts. | ||
- Inspired by the classic Breakout game. | ||
|
||
Enjoy playing the Brick Breaker game! |