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

Chapter 5. Randomized Items

Items in a game usually make up a considerable amount of content, especially in games where collecting loot is the main objective. We can use PCG to help us vary our content so that we don't have to create an overly large library of art assets. It is common in games that have a lot of content to use the same 3D model or sprite for two different items and just change the color or texture.

In this chapter, we are going to add items that our player can use to give them an advantage in the game. We will be adding both health items and items that can be stored in the player's inventory that will give the player bonus effects, such as damage and defense. We will randomize the values and use different colors to represent the strength of the item. This way, we can use the same sprite to represent several different item types. Here is a quick overview of what you will learn in this chapter:

  • Designing a method to deliver items to the player
  • Designing a...
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