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.
Get Getting Started with Unity 5.x 2D Game Development 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.