Summary

In this chapter, we designed, scripted, and implemented our game's point system. This included providing frame-by-frame updates to key on-screen components of the game's HUD. Our scripts enabled the collection of cherries from cherry trees, adding the cherry-throwing capability for our Cucumber Man. We also added points based on the collection of cherries and combat hits.

In Chapter 11Scripting Victory and Defeat, we will design and script our game's victory and defeat conditions. This will include managing the Cucumber Man's health, lives remaining, and respawning the player character.

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.