Setting up your battle scene

As you would expect, we need to create a new scene for our battles. You may want to create several scenes for different battle areas or you may want to 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. If you have not already made the scene called BattleScene in Chapter 2, Building Your Project and Character, do so now.

Make it look pretty with some additional background scene elements. I have added the ForestBackground.png image to the background with an X and Y scale ...

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.