|
AI Game Development. Synthetic Creatures with Learning and Reactive Behaviors Authors: Champandard A. J. Published year: 2003 Pages: 78-80/399 |
DiscussionAlthough it may seem wasteful to spend so much time on the specification, this phase is probably more important than design in software development! If handled incorrectly, the specification can become the bottleneck of the development. A flexible interface has the advantage of simplifying the experimentation. If prototypes can be refined without changing the interface, the iterations are significantly reduced. As well as practical benefits, there are also design advantages:
These benefits very often outweigh the difficulty of establishing the specification -such as taking into account restrictions, comparing options, making compromises. |
SummaryIn brief, the purpose of the specification phase is to do the following:
This is done in three steps:
The process of specification becomes easier with practice, but we can follow some rough guidelines:
With a robust specification, all problems are easier to solve. The next chapter uses the specification for movement to create a simple working prototype that can navigate complex dynamic worlds using steering behaviors.
|
Chapter 10. Steering Behaviors for Obstacle AvoidanceKey Topics
A world interface for movement allows any AI solution to be developed. It's generally a good idea to start with a simple solution for three main reasons. First, the validity of the interface specification in a practical fashion is checked. Second, it will provide a reference prototype in no time. Third, there will always be a working demo to show the producers and other team members . Steering behaviors can be applied to solve the navigation problem reactively [Reynolds99]. A wide variety of different steering behaviors exist, capable of controlling creatures individually or as part of a group . Steering behaviors take the form of relatively simple equations, one of which we're particularly interested in: obstacle avoidance. This chapter covers the following topics:
This approach produces a surprisingly capable animat, which can avoid walls and steer around smoothly. |
|
AI Game Development. Synthetic Creatures with Learning and Reactive Behaviors Authors: Champandard A. J. Published year: 2003 Pages: 78-80/399 |
![]() Artificial Intelligence for Games, Second Edition | ![]() Programming Game AI by Example | ![]() Behavioral Mathematics for Game AI |