Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
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

Chapter 4. Generating Random Dungeons

Our PCG Roguelike game is developing nicely. In the previous chapter, we produced a game board that expanded as the player explored the game. We are going to continue with the game board idea with a new type of board, the Dungeon Board. We will thus refer to our initial game board as the world board. The world board will be persistent and lead the player to instances of Dungeon Boards. Though we could add many different game mechanics to the world board alone, we want to learn more of what PCG has to offer. In this chapter, we want to explore another type of PCG level creation. We are going to make a random dungeon generator.

Our world board is a type of player-driven PCG. The world board reveals the pieces of board that the player dictates. Our dungeon generator will be system driven. We will develop an algorithm to completely create a whole dungeon. Using PRNs, we will allow randomness to dictate the shape and size of our dungeon.

By not controlling...

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