Skip to content

A simple math game involving addition, subtraction, multiplication and division and many recognizeable characters from Plants vs Zombies

Notifications You must be signed in to change notification settings

liaorosemary/Simple-Plants-vs-Zombies-Math-Game

Repository files navigation

Simple-Plants-vs-Zombies-Math-Game

Screenshot from 2022-07-28 00-00-24

Setting up and running the game

The game is run in Processing IDE.

The following setup steps are needed to enable the game's sound. (A bypass is to comment out all parts of the code requiring sound and background music).

  1. In the Processing IDE, click on Sketch -> Import Library -> Manage Libraries image

  2. Then search for the "Sound" library and install it. image

With the steps above, the setup should be complete and the game is ready to play with the click of the run button. image

Game plot

You're hanging out with Crazy Dave at the club. Suddenly, you hear a Bang! The zombies have broken in!

Your task is to protect Crazy Dave and kill the zombies before they reach the end of the disco floor and eat up Crazy Dave's brainz!!!

Oh, and did I mention, you have become a special peashooter capable of moving to any of the disco floor rows (i.e: you can move up and down to shoot peas at the zombies), but at the expense of having to answer simple math questions to shoot. Note: you can only move up and down the rows, and not across the columns.

Good luck!

Game controls

Space -> Pauses the game.

Up arrow -> Moves the peashooter up a row.

Down arrow -> Moves the peashooter down a row.

Backspace -> Deletes a digit in your answer.

Any Number key -> Used to answer the math question.

Game rules

Answer the simple math questions shown on the disco ball at the top of the screen to shoot at the zombies.

A zombie can only die when it is hit by 3 peas, and as you get closer to that goal, the zombies become more and more transparent, until it is killed. NOTE: the zombies are still capable of eating brainz, even while becoming more transparent.

Also, keep in mind that different zombie move at different speeds. In order of slowest to fastest, the speeds for the zombies are: Micahel Jackson < Skate boarder < Roller skater.

What happens when I win?

ezgif com-video-to-gif-converted (1)

(Click on the gif for a demo of the winning gameplay with sound effects and music.)

If you win, you will be given the chance to replay the game at a higher level (with more zombies, therefore increasing difficulty).

What happens when I lose?

ezgif com-video-to-gif-converter (1)

(Click on the gif for a demo of the losing gameplay with sound effects and music.)

You will be required to restart.

About

A simple math game involving addition, subtraction, multiplication and division and many recognizeable characters from Plants vs Zombies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published