Winning and losing

Our winning condition will be when all the Cucumber Beetles have been eliminated. There will be two different ways the player can lose the game. The first losing condition is when all the cucumbers have been eaten by the Cucumber Beetles.  The second losing condition is if the player runs out of lives. 

By this short description, you can tell there will be several things to keep track of, including the following:

  • Number of Cucumber Beetles
  • Number of cucumbers
  • Number of Cucumber Man lives

Get Getting Started with Unity 2018 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.