XNA Creators Club Online

beginner's guide

3D Lessons

1 Introducing the 3D Tutorial
2 Creating the Game Project
3 Adding Assets
4 Drawing Terrain
5 Drawing a Game Object
6 Making a Missile Launcher
7 Firing Missiles
8 Making Sounds
9 Creating Enemies
10 Destroying Enemies

5. Drawing a Game Object

Encapsulate game data into a game object class, then instantiate a game object to start building your player: a controllable missile launcher.

Step 1

Watch Video
Create a new GameObject class that defines your in-game objects' model, position, orientation, and scale in the 3D world.

Step 2

Watch Video
Convert your terrain model to a new GameObject and change its loading sequence appropriately.

Step 3

Watch Video
Create a new GameObject that will represent the stationary half of your missile launcher object, and load it into your game.

Step 4

Watch Video
Convert the DrawModel method into the more powerful and versatile DrawGameObject method, which you will use to draw all GameObjects in your game.
More Details
Download source code
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG