Game Development Reference
In-Depth Information
Figure 11.6
TFD after picking up a weapon.
Because it's possible that the player could find and pick up ammo before getting the
weapon, add another flow from
NoGunNoAmmo
to get ammo and check for the ammo
sound and visual effects. A new destination state should also be added. Call it
HaveAmmo
to be consistent with the
HaveGun
state name format. Your TFD should look like Figure
11.7 at this point.
Figure 11.7
TFD with
HaveGun
and
HaveAmmo
states.