Skip to content

PX201/Brick_Breaker

Repository files navigation

Brick Breaker Game

A simple implementation of the classic Brick Breaker game using Java and Swing.

Description

This project is a basic Brick Breaker game where the player controls a paddle to bounce a ball and break bricks. The objective of the game is to clear all the bricks by hitting them with the ball. The player's score increases for each brick broken. The game ends when all bricks are destroyed or if the ball falls below the paddle.

The game features include:

  • Paddle control using the left and right arrow keys
  • Ball movement and collision detection
  • Brick-breaking mechanics and scoring
  • Game over condition and final score display

Getting Started

Prerequisites

  • Java Development Kit (JDK) installed on your system

Installation

  1. Clone the repository or download the source code. git clone https://github.com/your-username/brick-breaker.git

  2. Open the terminal or command prompt and navigate to the root directory of the cloned or downloaded project.

Running the Game using the JAR file

  1. Locate the "brick-breaker.jar" file in the project folder.

  2. Double-click on the "brick-breaker.jar" file to run the game.

    OR

    Open the terminal or command prompt and navigate to the location where the JAR file is located.

    Run the game using the following command: java -jar brick-breaker.jarg

  3. Control the paddle using the left and right arrow keys to bounce the ball.

  4. Break as many bricks as possible and try to achieve a high score.

  5. The game ends when all bricks are destroyed or if the ball falls below the paddle.

Screenshots

Screenshot (144)

Screenshot (145)

Screenshot (141)

Future Enhancements

The current implementation of the Brick Breaker game serves as a basic version, but there are several possible enhancements that could be added to make it even more engaging. Some potential ideas for future improvements include:

  • Power-ups: Introduce power-ups that modify the paddle or ball behavior (e.g., increase paddle size, add extra balls).
  • Levels: Create multiple levels with increasing difficulty and different brick patterns.
  • Sound Effects: Add sound effects for ball hits, brick breaks, and game events.
  • High Score: Implement a high-score system to track and display the top scores achieved by players.
  • User Interface Enhancements: Improve the game's visual design, add menus, and provide user settings/options.

Feel free to fork the repository and make your own modifications to further enhance the game!

Acknowledgements

This game was developed by Aiman Lahmamsi as a learning project or for fun. It was inspired by the classic Brick Breaker game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages