In order to create competitive games, we must add some intelligence to the characters and we have to be able to detect collisions between them. An UFO has to be able to pursue a spaceship. A missile must be capable of chasing a plane. A cat must try to catch a mouse. The real things move using some intelligence. However, they also make mistakes. Hence, we have to add artificial intelligence (AI) to our characters.
In this chapter, we will add action to the scenes. By reading it and following the exercises we shall learn to: