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
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

Generating health items in the game world

Eventually, our player will be fighting for survival against an onslaught of baddies. It is inevitable that the player will take some health damage, so we need to provide a way for him or her to recover and continue playing. Providing the player with health recovery items is the most common approach. So, we will do just that but as usual we want to procedurally generate the items.

Rather than just randomly laying our health item tiles about the world board, we can use the environment we have created to add a layer of interactivity. The wall tiles that inhabit the world board are already laid at random. They are also destructible. We can, thus, use the wall tiles as a potential container for our health items.

By doing this, we have added a layer of game play for the player. The player now has to forage for their health items while confronted by foes. This should add to the suspense, difficulty, and reward factors, which contribute to the overall fun...

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