Game Development Reference
In-Depth Information
FIGURE 14.3 When our agent is confronted by Dudes of varying types, armed
with any of the four weapons, and at a variety of distances, he must select
which of the Dudes to attack and with which weapon.
I DENTIFYING F ACTORS
Beginning as early as Chapter 2, we talked about the necessity of identifying and an-
alyzing all the factors relevant to a decision. Throughout the examples in the topic,
we limited ourselves to the ones that helped illustrate the point we were trying to
make at that time. We are now going to revisit this idea.
To determine which factors are relevant to our pending Dude-icide, we need to
make a list of things that could help or hinder our ability to successfully attack a
Dude in general. After long consideration, here is the list we will use.
Distance to enemy: How far away from us is our target? This relates to the
weapon range (below) as well as the threat factor to our own safety (also below).
Our weapon range: How far away can we shoot with our current weapon?
Our weapon damage: How much damage per second does our current weapon
deal? Is the amount of damage related to the distance?
Our weapon accuracy: How accurate is our current weapon? Is the accuracy
related to distance?
Our health: How much damage can we take?
Opponent's weapon range: From how far away can they shoot us?
Search WWH ::




Custom Search