Beispiel #1
0
 public override void Initialize()
 {
     ground = new Ground(Game.Content.Load <Model>(@"Models/Ground/Ground"));
     models.Add(ground);
     // models.Add(new SkyBox(
     //     Game.Content.Load<Model>(@"Models/Sky/skybox")));
     tank  = new Tank(Game.Content.Load <Model>(@"Models/Tank/tank"), (((Game1)Game).GraphicsDevice), ((Game1)Game).camera);
     tank2 = new pursuit(Game.Content.Load <Model>(@"Models/Tank/tank"), (((Game1)Game).GraphicsDevice), ((Game1)Game).camera);
     models.Add(tank2);
     models.Add(tank);
     steer = new Steering(150f, 300f);
     base.Initialize();
 }
 public override void Initialize()
 {
     ground=new Ground(Game.Content.Load<Model>(@"Models/Ground/Ground"));
     models.Add(ground);
       // models.Add(new SkyBox(
     //     Game.Content.Load<Model>(@"Models/Sky/skybox")));
       tank=new Tank(Game.Content.Load<Model>(@"Models/Tank/tank"),(((Game1)Game).GraphicsDevice),((Game1)Game).camera);
     tank2 = new pursuit(Game.Content.Load<Model>(@"Models/Tank/tank"), (((Game1)Game).GraphicsDevice), ((Game1)Game).camera);
     models.Add(tank2);
     models.Add(tank);
     steer=new Steering(150f, 300f);
     base.Initialize();
 }