BEFORE going into detail with particular techniques and algorithms, it is worth spending a little time thinking about what we need from our game’s AI. This chapter looks at the high-level issues around game AI: what kinds of approaches work, what they need to take account of, and how they can all be put together.
It is a common mistake to think that the more complex the AI in a game, the better the characters will look to the player. Creating good AI is all about matching the requirements of the game to the right behaviors and the right algorithms to produce them. There is a bewildering array of techniques in this book, and the right one isn’t always the most obvious choice.
Countless examples of difficult ...
Get AI for Games, Third Edition, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.