O'Reilly logo

Microsoft XNA 4.0 Game Development Cookbook by Luke Drumm

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 5. Non-Player Characters

In this chapter we will cover:

  • A* pathfinding
  • Character state machines
  • Constructing dialogue
  • Decentralizing behavior

Introduction

This chapter is all about adding intelligence and personality to the Non-Player Characters (NPCs) that inhabit your world, or at least adding enough of an approximation to satisfy the requirements of the game.

Need a gruff old-timer who quickly grows tired of too many questions and storms out of the room in disgust? By the end of this chapter, you should find yourself with the architectural building blocks to know how to construct such an unsavory character.

This chapter also includes a brief exploration into the realm of decentralized behavior, which can be a useful way to model everything ...

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