🏆 Best Project Award – Object-Oriented Programming (OOP)
📄 View Certificate
This project is a JavaFX-based game developed as part of our Object-Oriented Programming Course Project. It showcases a strategic gameplay experience with custom-designed levels while utilizing core OOP concepts such as encapsulation, inheritance, abstraction, and additional features like threading, collision handling, etc.
-
🎮 Engaging Gameplay: Battle zombies using various plant abilities.
-
🎨 Custom Levels: Three progressively challenging levels:
- Level 1: Start with 3 cards, themed for the Day.
- Level 2: Unlock 2 more cards (total 5 cards), themed for the Night.
- Level 3: Unlock 2 more cards (total 7 cards), specially themed for Christmas, inspired by our project's discussion on the last day of the year.
- Difficulty: The game progressively gets harder as you advance through the levels, ensuring an exciting challenge for players.
-
🔊 Sounds: Enjoy immersive sound effects throughout the game. Only the Main Menu soundtrack is included in the preview to provide users with a novel feeling during gameplay. Gameplay soundtracks are unlocked during actual gameplay to enhance the experience. 😉
-
⏱️ Game Duration: Each level offers an immersive experience lasting approximately 4 minutes.
-
🔧 JavaFX Implementation: Built entirely using JavaFX for a dynamic user interface.
- Main Menu & Yard Preview:
mainMenu-startGame-preview-final.mp4
- Level 1 Gameplay:
level1-preview-final-.mp4
- Level 3 Gameplay (Christmas Level):
level3-preview-final.mp4
To run the project, JavaFX must be installed and configured. Follow these steps for a smooth experience:
- JavaFX SDK (e.g.,
javafx-sdk-23.0.1). - IntelliJ IDEA (recommended for easy setup, but other platforms, such as NetBeans, can also be used).
- Clone the Repository:
git clone <repository_url>
- Configure JavaFX in IntelliJ:
- Go to
File -> Project Structure (CTRL + ALT + SHIFT + S). - Navigate to
Modules. - Under your project, select
Dependenciesand click the+sign to add the JavaFX library.- Add the path to the
libfolder of the JavaFX SDK, e.g.,E:\openjfx-23.0.1_windows-x64_bin-sdk\javafx-sdk-23.0.1\lib.
- Add the path to the
- Go to
- Edit VM Options:
- Go to
Run -> Edit Configurations. - Add a new Application configuration and set the Main class to
MainGUI. - In
VM Options, add the following line (replace the path with your JavaFX SDK path):--module-path E:\openjfx-23.0.1_windows-x64_bin-sdk\javafx-sdk-23.0.1\lib --add-modules javafx.controls,javafx.fxml,javafx.media --add-opens javafx.base/com.sun.javafx=ALL-UNNAMED
- Go to
- Run the Project:
Click
Runto launch the game.
- Missing JavaFX SDK: Ensure the correct path to the JavaFX SDK is set in the project configuration.
- Main Class Not Found: Verify that the correct Main class is selected in the run configurations.
- Platform Compatibility: The project works best with IntelliJ but can be set up on NetBeans or other IDEs by following similar configuration steps.




