Chapter 7. Artificial Intelligence
This chapter takes a highly practical and specialized focus. Here, we'll cover the development of a single Unity project from start to finish in creating a maze scene that features enemy characters with Artificial Intelligence (AI); these characters have the ability to search for and chase us, attack us, and also flee from us while looking for health-restore potions. The following screenshot shows the maze scene in Unity:
The AI project for this book can be found in the book's companion files (code bundle) in the
ai folder of this chapter.
In creating this project, we'll apply nearly all the concepts ...