Skip to content
/ PvZ Public

An Implementation of Plants vs. Zombies Written in Java Using Swing and Graphics 2D

Notifications You must be signed in to change notification settings

tanya-jp/PvZ

Repository files navigation

PvZ

This project is an implementation of Plants vs. Zombies written in Java using swing and graphics 2D. Plants vs. Zombies is a tower defense video game, the player takes the role of a homeowner amid a zombie apocalypse. As a horde of zombies approaches along several parallel lanes, the player must defend the home by putting down plants, which fire projectiles at the zombies or otherwise detrimentally affect them. The player collects a currency called sun to buy plants. If a zombie happens to make it to the house on any lane, the player must play through the level again.

Game Canvas

This game contains 2 maps, one of them is light mode and another one is dark mode which represent day and night.

  • Day

  • Night

Elements

Zombies

In this game, there are three different types of zombies:

  1. Zombie:
  2. Cone Head Zombie:
  3. Bucket Head Zombie:

Plants

Each plant has its specific card, which shows the needed score for having it.

  1. SunFlower

2. PeaShooter

3. SnowPea

4. GiantWall-nut

5. CherryBomb

6. Squash

7. SunShroom

Menu

The game includes two types of menus:

  1. Main Menu which gives users the ability to start a new game, load a saved game, view rankings, modify settings or quit.

2. Pause Menu is available throughout the game and helps users pause or save their game or exit to the main menu.

Network

Multiple users (clients) can start a game and play simultaneously by connecting to a server. Their game information including scores and mode will be saved to be displayed on a scoreboard later on.

Packages: src

Design Tool Kit and Musics: PVS Design Kit

About

An Implementation of Plants vs. Zombies Written in Java Using Swing and Graphics 2D

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages