πAI-Powered
What is AI in Gaming?
Artificial intelligence is programming that allows certain characters in a video game, such as non-playable characters (NPCβs), and enemies, to act in a way that feels as if they were controlled by a human, or were acting with a mind of their own. AI is used to make games feel more immersive.
If youβve ever played the classic game Pacman, then youβve experienced one of the most famous examples of early AI. As Pacman tries to collect all the dots on the screen, he is ruthlessly pursued by four different colored ghosts.
But they donβt just follow him; when youβre playing they seem to try and ambush the player.
How did they accomplish this?
The ghosts are programmed to know Pacmanβs location, but each one is set to act a little differently in response to it.
One of the ghosts is set to wander, one is set to aggressively follow Pacman, one is set to go in the direction where Pacman is going, one is set to move randomly unless another ghost is close to catching Pacman, and the final ghost is set to follow Pacman when heβs far away, but go to a specific location on the map when heβs close.
These four behaviors make these ghosts, even in a game from 1980, appear to have a will of their own. They feel alive. And that is the purpose of AI in video games.
Last updated