O'Reilly logo

Getting Started with Unity 5.x 2D Game Development by Francesco Sapio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required