Chapter 4. The Town View
With our main character in hand, let's give her a home and a place to walk around. In this chapter, we will cover the basics of creating immersive areas where players can walk around and interact, as well as some of the techniques used to manage those areas.
The following topics will be covered in this chapter:
- Working with environments
- Looking at sprite layers
- Creating a script to move the camera with the player
- Handling multiple resolutions
Backgrounds and layers
Now that we have our hero in play, it would be nice to give her a place to live and walk around, so let's set up the home town and decorate it.
First, we are going to need some more assets. So, from the asset pack you downloaded earlier, grab the following assets ...
Get Mastering Unity 2D Game Development - Second Edition 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.