Game Development Reference
In-Depth Information
Referring back to Figure 3.3, assume the following for the Vanish code:
1. Versions 1 and 2 do not display the Vanish duration.
2. Version 1.1 introduced the duration display code.
3. Merging versions 2 and 1.1 produces version 3, but deletes the part of the
code in version 1.1 that displays the duration.
For the Vanish display bug, here are some possible Build defect type scenarios:
The merge that produced version 3 deleted the part of the code in version 1.1
that displays the duration. Version 3 gets built but we get no duration display.
Versions 1.1 and 2 were properly merged, so the code in version 3 will display
the duration. However, the label used by build specification has not been
moved up from version 2 to version 3, so version 2 gets built and we get no
duration display.
Versions 1.1 and 2 were properly merged, so the code in version 3 will display
the duration. The build label was also moved up from version 2 to version 3.
However, the build specification was hard-coded to build version 2 of this file
instead of using the label, so we get no duration display.
Algorithms
Algorithm defects include efficiency or correctness problems that result from some
calculation or decision process. Think of an algorithm as a process for arriving at a
result (for example, the answer is 42) or an outcome (for example, the door opens).
Each game is packed with algorithms that you may not even notice if they are work-
ing right. Improper algorithm design is often at the root of ways people find to gain
an unexpected advantage in a game. Here are some places where you can find algo-
rithms and Algorithm defects in games from various genres:
Sports
CPU opponent play, formation, and substitution choices
CPU trade decisions
Modeling the play calling and decision making of an actual coach or opponent
The individual AI behavior for all positions for both teams in the game
Determining camera angle changes as the action moves to various parts of
the field/court/ice, etc.
Determining penalties and referee decisions
Determining player injuries
Search WWH ::




Custom Search