Game Development Reference
In-Depth Information
its own implementation to “fire weapon”: the sniper shoots single accurate bullet, the rifle
shoots a large number of bullets in short time, and the RPG shoots one rocket. Therefore,
we need to separate general functions that reflects common properties among all weapons
from specific implementation of weapon firing. These general functions are implemented
in GeneralWeapon script in Listing 82. This script must be added to all weapons.
Search WWH ::




Custom Search