Chapter 8. User Interface for the Tower Defense Game
In Tower Defense games, the User Interface (UI) often provides a way for the player to interact with the game. Through the UI, it is possible to build, sell, or upgrade towers. Furthermore, the UI is also important to visualize stats such as money and lives.
Since this is a big topic, we will not have enough time to cover everything here. However, we will see all the basics we need to implement our UI by recapping and extending the ideas seen in Chapter 4 , Level Design. Some suggestions on how to implement it will be given later in the chapter as well.
Lastly, you should definitely consider buying a book that is specifically about UIs. For instance, the Unity UI Cookbook, Packt Publishing, has a perfect set of recipes ready to use. There you will find all the concepts treated here in more depth, and much more.
In this chapter, we will learn how to implement the UI for our Tower Defense game by looking specifically at:
Creating a lives...