|
|
|
|
 |
| Encapsulate game data into a game object class, then instantiate a game object to start building your player: a controllable missile launcher. |
|
 |
Step 1 |
|
|
|
| Create a new GameObject class that defines your in-game objects' model, position, orientation, and scale in the 3D world. |
|
|
|
|
|
Step 2 |
|
|
|
| Convert your terrain model to a new GameObject and change its loading sequence appropriately. |
|
|
|
|
|
Step 3 |
|
|
|
| Create a new GameObject that will represent the stationary half of your missile launcher object, and load it into your game. |
|
|
|
|
|
Step 4 |
|
|
|
| Convert the DrawModel method into the more powerful and versatile DrawGameObject method, which you will use to draw all GameObjects in your game. |
|
|
|
|
|
|
|