Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Unity 2D game development

You're reading from   Mastering Unity 2D game development Mastering Unity 2D Game Development will give your game development skills a boost and help you begin creating and building an RPG with Unity 2D game framework

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781849697347
Length 474 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Simon Jackson Simon Jackson
Author Profile Icon Simon Jackson
Simon Jackson
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Overview 2. Building a Character FREE CHAPTER 3. Getting Animated 4. The Game World 5. NPCs and Interactions 6. The Big Wild World 7. Encountering Enemies and Running Away 8. Shopping for Weapons 9. Getting Ready to Fight 10. Fight and Gain XP 11. Onward Wary Traveler 12. Deployment and Beyond A. Additional Resources Index

Putting it together


As you would expect, we need to create a new scene for our battles. There is a choice to make whether you want to create several scenes for different battle areas or define one generic scene and randomize the contents of that scene to add variation. Obviously there are pros and cons to each approach, but ultimately the choice is up to you.

Building the new scene

For now, we will keep things simple and just create a new scene and then configure it as our battle area. So, add a new scene called Battle to the project and make it look pretty with some additional background scene elements.

For this example, I have used the Fantasy background (Environments\Fantasy\Background01.png) with some of the environmental assets from our asset pack to create the following screenshot:

The Fantasy background from the free assets pack with the sprite's X scale set to 1.5 to better fit the camera

Tip

Remember to group your additional environmental assets under a single empty game object to keep...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime