Jul
28
2009

Rough Edges

 

Code Needed :

Initialize
MoveableCamera cam = new MoveableCamera();
cam.CollideWithTerrain = true;
cam.LockToTerrain = true;
cam.HeightAboveGround = 4.5F;

string rootDir = Directory.GetParent(Application.ExecutablePath).Parent.Parent.Parent.Parent.FullName + "\\Resources\\";
XmlTextReader doc = new XmlTextReader(@"C:\Rough Edges\AnimatedModelTest2.rel");
AssetManager assetManager = new AssetManager(Services, rootDir);
Helper.LoadContent(assetManager, rootDir);

scene = REScene.ReadXML(doc, assetManager, GraphicsDevice);
scene.Camera = cam;
 
Update

scene.Update(gameTime, GraphicsDevice);

Draw
scene.Draw(gameTime, GraphicsDevice);

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

Something about the author

Month List

Page List