This is a simple brick breaker game written in Java, with a graphical user interface built using Swing. The objective of the game is to break all the bricks on the screen using a ball and a paddle, without letting the ball fall off the bottom of the screen.
To run the game, simply compile and run the Breakout.java
file in 'brickBreaker' package in the src
directory. Once the game is running, you can use the arrow keys on your keyboard to move the paddle left and right. The ball will automatically start moving once the game begins.
Breakout.java
: The main class that runs the gameBoard.java
: The class that manages the game logicGraphic.java
: The class that contains dimensions of the gameBrick.java
: The class that represents a single brick on the screenPaddle.java
: The class that represents the player's paddleBall.java
: The class that represents the game ballRegular.java
: The interface that have numeric values of the gameresources/
: A directory containing the images used for the game graphics
This game was developed using Java 8 and the Swing GUI toolkit. No additional libraries or frameworks are required to run the game.