Tuesday, January 22, 2013

Overview of Vehicle Data


After loading player data into the game, the trigger manager loads vehicle data into each game object.  The vehicle data holds data essential to the definition for vehicle game object.  This includes the vehicles' name, structure, ammo type, ammo capacity and other important fields.  Like the player data script, this script just stores data and provides the programmer with a method of retrieving the data. 
Here’s the script:


 
The next script that I will cover will be more complicated than a simple data storage structure.  The flight control script actually manipulates stored data to allow the player or computer to maneuver individual vehicles.

No comments:

Post a Comment