Unfolding the map
We are finally ready to place the 2D map in our scene.
In the previous chapter, we have set the resolution to 16:9. Therefore, the maps that we will find in our packages are ready to use.
Let's start by dragging the sugar_mountain_map Sprite from the Graphics/maps folder into our scene. We need to place it in (0,0,0). Please note that the z axis is set to zero.
It is a perfect map for what we need. For example, on the left side, there is the beginning of the path that the sweet-tooth pandas will follow. At the end of the path, there is the Sugar castle that the player needs to protect. Furthermore, there is enough space at the top to implement our user interface in Chapter 3, Communicating with the Player - the User Interface.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access