Skip to Content
Procedural Content Generation for Unity Game Development
book

Procedural Content Generation for Unity Game Development

by Ryan Watkins
January 2016
Beginner
260 pages
5h 48m
English
Packt Publishing
Content preview from Procedural Content Generation for Unity Game Development

Generating items in the dungeon

Usually in RPG games, the player will acquire and carry items that add some status boosting effects. The player can have weapons to increase their damage or armor to increase their defense. We are going to add some armor items that will power up our player.

The armor items will run on a slightly more complicated system than the health items and will require their own class. We will also need a way to deliver the items to the player. We want to be a little more interesting than just littering the dungeon floor with items, so we will create a chest that will randomly spawn items.

The Chest prefab

Let's start with the Chest prefab. The Chest prefab will be a lot like the Wall prefab, in that the Chest prefab will also ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

2D Game Development with Unity

2D Game Development with Unity

Franz Lanzinger
Unity Game Development Cookbook

Unity Game Development Cookbook

Paris Buttfield-Addison, Jon Manning, Tim Nugent

Publisher Resources

ISBN: 9781785287473Supplemental Content