Creating a 2D Shop Interface and In-Game HUD

n this chapter, we will be paying attention to our shop interface and how we can improve it visually, as well as its functionality. The current shop works well, but we could make it support multiple screen ratios. We could also introduce Unity's Event system and Button components, as well as a few other new functionalities.

The other area we will be visiting in this chapter is the in-game Heads Up Display (HUD). This is fairly common in games where we have the game's information displayed at a particular location of the screen. We will be displaying our player's lives, score, and a mini-map to show where our enemies are. This can be seen in the following screenshot:

The other half of this chapter ...

Get Unity Certified Programmer: Exam Guide 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.