This project is an implementation of the classic Arkanoid game with slight alternations, developed as a project for the OOP course in Bar-Ilan university.
The game features a GUI, multiple levels, score tracking, sound effects and file management while adhering to OOP principles and design patterns.
Feel free to visit my GitHub profile for more projects and my LinkedIn for professional details.
- Description
- Main Features
- Technologies Used
- Installation and Running:
- Future Plans
- Credits
- GUI: Built using Java and the biuoop-1.4.jar given by the course's lecturer and TAs.
- File Management: High-scores are saved locally using JSON files.
- Sound Effects: Both original Arkanoid and custom-made sound effects were incorporated into the game using java built in tools.
- Levels and difficulties: The game consists of several levels, with progressively increasing difficulty.
- Design Patterns:
- Singleton: Managing global game settings and resources. (e.g. screen dimensions and game resources)
- Observer: Used in event listening between game components. especially used for hit detection between the ball and the blocks as well as score updates.
- Command: For executing actions related to menu selections.
- Java: Core programming language, used version 17.
- biuoop library: Provided by Bar-Ilan's course staff for handling GUI components and sensors.
- GSON: For reading and writing JSON files used in the high score management code.
- Javax Sound API: Used for handling the game's sound effects.
Installing and running the game will depend on your operating system. Using the built-in terminal of macOS/ linux and built in cmd of windows you can follow these steps to easily run the game.
Click to expand macOS and linux instructions
- Clone the repository:
git clone https://github.com/YuvalAnteby/Arkanoid.git
- Navigate to the project directory:
cd Arkanoid
- Compile the code:
javac -cp biuoop-1.4.jar:*.java
- Run the game:
java -cp biuoop.jar:ArkanoidGame
Click to expand Windows (cmd) instructions
- Clone the repository:
git clone https://github.com/YuvalAnteby/Arkanoid.git
- Navigate to the project directory:
cd Arkanoid
- Compile all the source code:
for /R src %f in (*.java) do javac -cp "lib/*" -d out "%f"
- Run the code:
java -cp "out;lib/*" Main
This project is complete, and there are currently no plans to expand its features. Further contributions or suggestions for improvements are welcome.
- Impact Sounds: The impact sounds used in this project were sourced from "The Essential Retro Video Game Sound Effects Collection [512 sounds]" by Juhani Junkala.
All rights for these sounds remain with the original creator.
You can find the collection here - biuoop-1.4.jar: The GUI library used in this project was provided by the Object-Oriented Programming (OOP) course staff at Bar-Ilan University.