Created by: Himanshu Raj and Pankil Kalra
A clone of Plants vs Zombies made from scratch using JavaFX. Applied OOPs concept and suitable Design Patterns. Made as a part of project in Advanced Programming course at IIIT-Delhi.
- 5 levels with increasing difficulty.
- 4 different types of Plants to protect your arena.
- Restart, Load and Save game feature.
- Multiple User Support.
- JavaFX: Animations in the game were implemented using Controllers and AnimationTimer available in the JavaFX platform.
- FXML Scene Builder
- Intellij IDE
- Lucidchart for UML Diagram
- Model View Controller
- Model : All classes and implementation of different functionality.
- View : FXML (for GUI) files
- Controller : It uses model to make changes in view (or GUI).
- Iterator to ensure that Plant, Zombie and Lawnmower lists are accessed in a synchronized way.
- Facade for menu based implementation.
- Singleton for the database and for progress bar feature, as we need only one reference through out the game.
- For running it in Eclipse or IntelliJ IDE
- Clone this repository.
- Open the folder PlantsVsZombies.
- Open PVZ folder as IntelliJ or Eclipse project.
- Build and Run.
- For running it from terminal or command prompt
- Clone this repository.
- Go to PlantsVsZombies/PVZ/src folder from terminal.
- Compile the sample package using following command.
javac ./sample/Login.java
- Run the game using following command.
java sample.Login
Enjoy the Game!!