Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Procedural Content Generation for Unity Game Development

You're reading from   Procedural Content Generation for Unity Game Development Harness the power of procedural content generation to design unique games with Unity

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785287473
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ryan Watkins Ryan Watkins
Author Profile Icon Ryan Watkins
Ryan Watkins
Arrow right icon
View More author details
Toc

Back to the Unity Editor


In the GameManager prefab, we now have an array section for outer wall tiles. We will first need to set this up to reference the three different outer wall tiles that should already be in your Prefabs folder. You can add them by following these steps:

  1. Select the GameManager prefab in the Prefabs folder.

  2. Select the Size field under the Outer Wall Tiles section of the Board Manager component, set it to 3 and press Enter.

  3. Drag and drop the outer wall tiles to the newly created outer wall tiles element fields.

We then need to add the DungeonManager script to the GameManager prefab. You can do that by following these steps:

  1. Select the GameManager prefab in the Prefabs folder.

  2. Click on the Add Component button under Scripts | DungeonManager.cs.

    New options in the GameManager prefab

You have just completed the dungeon generator feature implementation. You can press the play button and give it a try. Once you have found a dungeon and entered it, you can press the pause button and...

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 $19.99/month. Cancel anytime
Banner background image