3

Completing the Collection Game

In Chapter 2, you were introduced to level design, adding different 2D assets, using assets with Tilemap to create a game environment, and creating scripts using the C# language and the Visual Studio (VS) IDE to add movement to the player character.

With the player moving around the environment, we’ll want a way to follow them visually around the level. This chapter will use Unity’s camera system called Cinemachine (CM) – a powerful camera control feature that makes polished camera movement easy to add and set up.

We’ll finish the chapter with an introduction to adding a user interface (UI). You’ll learn how to add text to the screen to track gameplay progress with a timer and score. We’ll use Unity’s UI system, ...

Get Unity 2022 by Example 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.