Game Development Reference
In-Depth Information
Putting those values into the formula above, we arrive at:
As we can see, V ab = 135 and V ba = 105. That means, of the original combined
value of goals A and B (200), we could achieve 135 by visiting A first (then B) and
105 by going the long way to B first and proceeding back to A. Put another way, by
performing A first, we will achieve 68% of the possible total score, whereas we
would only get 53% the other direction. (As these values change, it will be increas-
ingly important for us to express the outcomes in terms of percentages.) This intu-
itively makes sense to us. At that point, we would expect that the greatest value lies
in the path that takes the shortest time to execute… A first and then B.
FIGURE 7.16 If the values of goal A and goal B start the same and are both decaying
at the same rate, we should complete the closest goal first—in this case, goal A.
However, what if we raise the value of goal B to 200, for instance? We now have
300 potential value points between A and B. Leaving the distances the same as in the
first example, we would arrive at:
Search WWH ::




Custom Search