A simple Plants VS Zombies game.
- Implemented using libGDX - java
- Implemented plants:
- Sunflower Plant (produces suns to collect)
- Peashooter Plant (shoots peas to kill the zombie)
- Implemented Zombies:
- Regular Zombie
- Bucket-Head Zombie
- Implemented Lawn Mowers (to defend the house if a zombie approaches it)
- Implemented Random Falling Sun
- Click View tab -> Tool Windows -> Project
- Go to desktop -> src -> com.uni4team.desktop -> DesktopLauncher
- Right click on DesktopLauncher -> Run 'DesktopLauncher.main()'
- Click Run tab -> Edit Configurations
- Click '+' -> Application
- In the 'Main class:' -> Click on DesktopLauncher
- In the 'Use classpath of module:' -> Choose PlantsVSZombies.desktop.main
- Finally, Click OK
You should be able to run the project now.
The game includes:
-
A welcome screen to start the project
-
The game starts with 5 rows and 5 lawn mowers in each row, also initially having 50 suns that will later help in buying sunflowers and peashooters. Also, the score will be incremented when killing a zombie.
-
Random Suns fall and you can click on them to increase the amount of suns you have. also sunflower produces suns that you can also collect. The zombies numbers increases as time passes that will make it harder to kill all the zombies coming without placing enough peashooters in advance.
-
Lawn Mower starts moving once a zombie approaches it, it also kills every zombie it finds in its way.
-
If a zombie got close to the house and there is no lawn mower to defend the lane, the zombie will enter the house resulting in losing the game.
-
Game Over shows the total number of the killed zombies during the game