Game Development Reference
In-Depth Information
Get Weapon and Ammo
The TFD template in Figure D.8 is an
enhancement of the diagram from the
walkthrough in Chapter 11. A state and
flows have been added for handling
the case where the weapon has maxi-
mum ammo. You can also apply this
TFD structure to game elements that
have a similar relationship, such as
cars and fuel or spells and mana. Just
replace “Gun�? and “Ammo�? with the
corresponding elements.
Figure D.8 Weapon and Ammo TFD template.
 
Search WWH ::




Custom Search