mehuljain91 / Brick-Breaker-Game

Simple Brick Breaker Game in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brick Breaker Game in Java

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.

How to Play

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.

Files in the Repository

  • Breakout.java: The main class that runs the game
  • Board.java: The class that manages the game logic
  • Graphic.java: The class that contains dimensions of the game
  • Brick.java: The class that represents a single brick on the screen
  • Paddle.java: The class that represents the player's paddle
  • Ball.java: The class that represents the game ball
  • Regular.java: The interface that have numeric values of the game
  • resources/: A directory containing the images used for the game graphics

Dependencies

This game was developed using Java 8 and the Swing GUI toolkit. No additional libraries or frameworks are required to run the game.

About

Simple Brick Breaker Game in Java


Languages

Language:Java 100.0%