Esempio n. 1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     models.Add(new CustomModel(Content.Load <Model>("body"), Vector3.Zero, new Vector3(0, 0, 0), new Vector3(50.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load <Model>("righthand"), new Vector3(-400, 200, 0), new Vector3(0, 0, 0), new Vector3(30.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load <Model>("lefthand"), new Vector3(400, 200, 0), new Vector3(0, 0, 0), new Vector3(30.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load <Model>("foot"), new Vector3(100, 0, 0), new Vector3(0, 0, 0), new Vector3(30.0f, 50.0f, 50.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load <Model>("foot"), new Vector3(-100, 0, 0), new Vector3(0, 0, 0), new Vector3(30.0f, 50.0f, 50.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load <Model>("head"), Vector3.Zero, new Vector3(0, 0, 0), new Vector3(50.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load <Model>("ground"), new Vector3(0, 0, -700), new Vector3(0, 0, 0), new Vector3(150.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load <Model>("palm_tree"), new Vector3(-950, 260, -50), new Vector3(80, 0, 0), new Vector3(100.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load <Model>("ice_cream"), new Vector3(300, -150, 0), Vector3.Zero, new Vector3(100.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load <Model>("ice_cream_2"), new Vector3(-300, -150, 0), Vector3.Zero, new Vector3(25.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load <Model>("bomb"), new Vector3(200, -150, 0), Vector3.Zero, new Vector3(35.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load <Model>("bomb"), new Vector3(-200, -150, 0), Vector3.Zero, new Vector3(35.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load <Model>("f_e"), new Vector3(450, -200, 0), Vector3.Zero, new Vector3(25.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load <Model>("f_e"), new Vector3(-450, -200, 0), Vector3.Zero, new Vector3(25.0f), GraphicsDevice));
     camera = new TargetCamera(new Vector3(0, 0, 1200), Vector3.Zero, GraphicsDevice);
     anim   = new ObjectAnimation(Vector3.Zero, Vector3.Zero, Vector3.Zero,
                                  new Vector3(0, -MathHelper.TwoPi, 0),
                                  TimeSpan.FromSeconds(10), true);
     bombEffect         = Content.Load <SoundEffect>("Big Bomb-SoundBible.com-1219802495");
     iceCreamEffect     = Content.Load <SoundEffect>("Tiny Button Push-SoundBible.com-513260752");
     extinguisherEffect = Content.Load <SoundEffect>("f_ex");
 }
Esempio n. 2
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     models.Add(new CustomModel(Content.Load<Model>("body"),Vector3.Zero,new Vector3(0,0,0),new Vector3(50.0f),GraphicsDevice));
     models.Add(new CustomModel(Content.Load<Model>("righthand"), new Vector3(-400,200,0), new Vector3(0, 0, 0), new Vector3(30.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load<Model>("lefthand"), new Vector3(400, 200, 0), new Vector3(0, 0, 0), new Vector3(30.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load<Model>("foot"), new Vector3(100, 0, 0), new Vector3(0, 0, 0), new Vector3(30.0f, 50.0f, 50.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load<Model>("foot"), new Vector3(-100, 0, 0), new Vector3(0, 0, 0), new Vector3(30.0f, 50.0f, 50.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load<Model>("head"), Vector3.Zero, new Vector3(0, 0, 0), new Vector3(50.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load<Model>("ground"), new Vector3(0, 0, -700), new Vector3(0, 0, 0), new Vector3(150.0f), GraphicsDevice));
     models.Add(new CustomModel(Content.Load<Model>("palm_tree"), new Vector3(-950, 260, -50), new Vector3(80, 0, 0), new Vector3(100.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load<Model>("ice_cream"), new Vector3(300,-150,0), Vector3.Zero, new Vector3(100.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load<Model>("ice_cream_2"), new Vector3(-300, -150, 0), Vector3.Zero, new Vector3(25.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load<Model>("bomb"), new Vector3(200, -150, 0), Vector3.Zero, new Vector3(35.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load<Model>("bomb"), new Vector3(-200, -150, 0), Vector3.Zero, new Vector3(35.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load<Model>("f_e"), new Vector3(450, -200, 0), Vector3.Zero, new Vector3(25.0f), GraphicsDevice));
     catchableObjects.Add(new CustomModel(Content.Load<Model>("f_e"), new Vector3(-450, -200, 0), Vector3.Zero, new Vector3(25.0f), GraphicsDevice));
     camera = new TargetCamera(new Vector3(0, 0, 1200),Vector3.Zero, GraphicsDevice);
     anim = new ObjectAnimation(Vector3.Zero, Vector3.Zero, Vector3.Zero,
                                new Vector3(0, -MathHelper.TwoPi, 0),
                                TimeSpan.FromSeconds(10), true);
     bombEffect = Content.Load<SoundEffect>("Big Bomb-SoundBible.com-1219802495");
     iceCreamEffect = Content.Load<SoundEffect>("Tiny Button Push-SoundBible.com-513260752");
     extinguisherEffect = Content.Load<SoundEffect>("f_ex");
 }