Incorporating AI into a Video Game

Опубликовано: 23 Июль 2026
на канале: Brian MalloyOn
297
3

In this video, we describe an approach to incorporating state-based AI into a 2D video game. We review the 2 states that the "smart" sprite can enter, how they determine if they should change states, and what the "smart" sprite does to simulate AI. We also review our use of the Observer Pattern to choreograph the communication from the Player to the "smart" NPC.