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

Summary


You are just about finished with our PCG 2D Roguelike game! In this chapter, we added the component of enemy opposition and made the difficulty scale with the player.

In this chapter, you added enemies to the game that inherited the same base class as the Player class. In PCG fashion, you spawned the enemies at random and had to handle destroying the enemies at the appropriate times. You set up monitoring of the player to scale the difficulty. Instead of just upping the hit points or strength of the enemies to scale the difficulty, you made them faster and smarter by developing a more efficient AI.

We did quite a bit in this chapter, but there is a lot more that we can still do to improve the system. You should continue experimenting with adaptive difficulty. See how much you can improve the AI to make smart enemies with better pathfinding and possibly wall breaking like the player. You can also use randomness to determine how smart an enemy is. Then, you can differentiate between...

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