brick-breaker

Brick Breaker

Brick Breaker is a classic arcade game implemented in Java using JavaFX for the graphical user interface. The game is designed to entertain and challenge players by allowing them to control a paddle and a ball to break bricks on the screen. It provides a fun and nostalgic gaming experience, reminiscent of the popular brick-breaking games of the past. The project utilizes Java 11.0.2, Eclipse IDE, JavaFX for the GUI components, and Maven for dependency management. It incorporates refactoring, code maintenance, design patterns, and documentation practices to improve code quality and maintainability.

Table of Contents

Project Setup

I’m using Java 11.0.2 on eclipse.

$user > java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

I have tested my program on 2 different Windows devices using Eclipse

To run the game, select Run -> Run Configurations -> Arguments ->

Add the following line to the VM Arguments:

--module-path "/path/to/JavaFX/lib" --add-modules=javafx.controls

In my case, the path to my JavaFx library is as follow:

--module-path "C:\javafx\javafx-sdk-17.0.1\lib" --add-modules=javafx.controls

After that, run

Once the Maven Dependencies folder appeared, the program is now ready to be run.

Now, right click the main project and run it as a Java Application.

If any error occured, try right click the project -> maven -> reload project.

Game Starts

Refactoring

Additions

image

Documentation

image

Git Use