Chapter 7. Creating Artificial Intelligence
In this chapter, we'll start the final project, which will cover extensive ground. This project, unlike the previous three, will not be a fully completed game with a clear win and loss condition but will be a functional prototype and proof of concept style project that highlights a range of important coding techniques and ideas prevalent in games. Specifically, we'll create a world with a terrain, first-person character, and some enemies. The enemies will have Artificial Intelligence (AI), patrol the level searching for the player, and attack the player when found. In this chapter, we will explore the following topics:
- How to build levels and landscapes with the Terrain tools
- How to generate and use navigation meshes
- How to prepare for Artificial Intelligence development
Note
The starting project and assets can be found in the book companion files in the Chapter07/Start folder. You can start here and follow along with this chapter...