O'Reilly logo

Procedural Content Generation for C++ Game Development by Dale Green

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Procedural Behavior and Mechanics

Until now, the focus of our efforts has been the procedural creation of resources. Let's branch out using what we've learned and procedurally create behavior and game mechanics. While the creation of procedural game behavior may sound exotic, you run into it in every game that you play; artificial intelligence (AI). AI in games is calculating behavior at runtime based on current factors. This definitely counts as procedural generation! Previously, when approaching large topics, I've commented that a whole book could be dedicated to the subject. Well, with AI, you'd need an entire library. For our project, we're going to have a look at pathfinding; allowing enemies to intelligently chase the player around ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required