image Chapter 3

Movement

One of the most fundamental requirements of AI is to move characters around in the game sensibly. Even the earliest AI-controlled characters (the ghosts in Pac-Man, for example, or the opposing bat in some Pong variants) had movement algorithms that weren’t far removed from the games on the shelf today. Movement forms the lowest level of AI techniques in our model, shown in Figure 3.1.

Figure 3.1

Figure showing the AI model

The AI model

Many games, including some with quite decent-looking AI, rely solely on movement algorithms and don’t have any more ...

Get Artificial Intelligence for Games, 2nd 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.