This is a simple Brick Breaker game implemented in Java using Swing.
-
Make sure you have Java installed on your system.
-
Clone this repository to your local machine.
git clone https://github.com/trungddao/brick-breaker.git
-
Compile and run the Main class.
cd brick-breaker javac Main.java java Main
-
Use the left and right arrow keys to control the paddle and prevent the ball from going out of bounds.
- 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.
Feel free to customize the game or enhance the gameplay based on your preferences. The code is open for modification and improvement.
- 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!