Breakout is a simple and classic breakout game implemented in Java. It is a game where the player controls a paddle to bounce a ball and break bricks. This project serves as a fun and educational example of game development using Java.
- Paddle Control: Move the paddle left and right to bounce the ball.
- Brick Breaker: Break the bricks using the ball to score points.
- Score Tracking: Keep track of your score as you break more bricks.
- Game Over: The game ends when the ball passes the paddle. Your high score is recorded.
- Java Development Kit (JDK) installed on your machine.
-
Clone the repository: git clone https://github.com/jasanpretn9/breakout
-
Navigate to the project directory: cd Breakout
-
Compile the Java files: javac Game.java
-
Run the game: java Game
-
Use the left and right arrow keys to control the paddle.
- Left Arrow: Move the paddle to the left.
- Right Arrow: Move the paddle to the right.
Feel free to customize the game by tweaking parameters, such as paddle speed, ball speed, and the number of bricks. You can explore and modify the code to add new features or improve existing ones.