Net Worth →
Game Design

Video Game Design: Programming: Framework: AI: An Open Learning Guide

Artificial intelligence is what make your game world come alive and gives your in-game creatures a mind of their own. AI also allows the difficulty of the game to change either by having a u

By the Pop Culture Files editorial team••2 min read•✓ Fact-checked
Editorial graphic for: Video Game Design: Programming: Framework: AI: An Open Learning Guide
Editorial graphic by Pop Culture Files · not a photograph

Artificial intelligence is what make your game world come alive and gives your in-game creatures a mind of their own. AI also allows the difficulty of the game to change either by having a user select their own difficulty level or by having the game adapt automatically to the players skill level. There are many ways to implement AI in a game.

Very simple type of AI were used in Doom. Finite State Machines consist of a list of possible states (or "emotions"). Let's say there is a game that has guards that patrol a room looking for intruders.

Waiting, or idle - The guard is standing somewhere, possibly talking with another nearby guard, smoking, etc.

These states would have particular actions consistent with the "emotion" of the guard. Patrol would activate the waypoint system, Alert would mean you activate the targeting system for the AI.

Source and licence

Text adapted from Video Game Design/Programming/Framework/AI by Wikibooks contributors under CC BY-SA 4.0. Paragraphs have been selected and abridged, and formatting adjusted. This adapted text is shared under the same licence. Contributor history.

Sources

More in Gaming & Internet