Starting condition

When our game is first launched, we will have several starting conditions set. Here is a list of those conditions:

  • Cucumber Man spawn point
  • Number and placement of Cucumber Beetles
  • Number of cherries held by Cucumber Man
  • Number and placement of cucumbers

Let's look at each of these starting conditions.

The first starting condition is where to spawn the Cucumber Man. As you saw in our earlier mock-up, there will be five possible spawn points in the game. We will write a script to spawn the player in a random spot each time. While there are only five spots, it does add enough randomness into the game to make this a fun and challenging component.

The number and placement of Cucumber Beetles is the second starting condition. ...

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.