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

Get Procedural Content Generation for Unity Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.