Over the previous nine chapters, we've looked at various AI techniques and built some simple demo applications using Unity3D. This is the final chapter in our book, in which we'll apply some of those techniques to a more complex game example. The techniques we'll be using in this chapter include navigation meshes and finite-state machines (FSMs), but, more importantly, we will learn how to navigate and add AI into a pre-existing complex game. So, unlike the other chapters, this is a much more of a real-world scenario.
In this chapter, we'll add AI to a simple tank combat game. The game we'll start with is based on the TANKS! official Unity tutorial, which was in turn inspired by a historic tank game called Combat for the Atari 2600. In its default version, this is a straightforward multiplayer game. Each player takes control of...