Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.08 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.08 KB

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.

    git clone https://github.com/trungddao/brick-breaker.git
  3. Compile and run the Main class.

    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!