Book Image

Mastering Unity 2D game development

By : Simon Jackson
Book Image

Mastering Unity 2D game development

By: Simon Jackson

Overview of this book

Table of Contents (21 chapters)
Mastering Unity 2D Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Overview
Index

Backgrounds and layers


Now that we have our hero in play, it would be nice to give him a place to live and walk around, so let's set up the home town and decorate it.

Firstly, we are going to need some more assets. So, from the asset pack you downloaded earlier, grab the following assets from the Environments pack, place them in Assets\Sprites\Environment, and name them as follows:

  • Name the ENVIRONMENTS\ STEAMPUNK\background01.png file Assets\ Sprites\Environment\background01

  • Name the ENVIRONMENTS\STEAMPUNK\environmentalAssets.png file Assets\Sprites\Environment\environmentalAssets

  • Name the ENVIRONMENTS\FANTASY\environmentalAssets.png file Assets\ Sprites\Environment\environmentalAssets2

To slice or not to slice

As we progress through this book, you will notice that some assets are single textures, whereas others contain multiple images and you may wonder which method is best to create your assets and why it is best.

The answer (as it is in a lot of these situations) depends on the needs of your...