示例#1
0
        private void LoadContentForBombardment()
        {
            Texture2D bombTexture = Game.Content.Load <Texture2D>(@"Textures\ParticleColors");

            explosionEffect = Game.Content.Load <Effect>(@"effects\shader");
            Texture2D smokeTexture = Game.Content.Load <Texture2D>(@"Textures\smoke");

            Model BombardmentModel = Game.Content.Load <Model>(@"Models\ammo");

            bombard = new Bombard(BombardmentModel, terrain, bombTexture, camera, hud, milliseconds, explosionEffect, smokeTexture, audio);

            collisionBillboard = new CollisionBillboard(GraphicsDevice, Game.Content,
                                                        Game.Content.Load <Texture2D>(@"Textures\smoke"), new Vector2(50), bombard.collisionPosition);

            fauxAstroid = new FauxAstroid(GraphicsDevice, Game.Content,
                                          Game.Content.Load <Texture2D>(@"Textures\fauxAstroid"), new Vector2(10), fauxPosition);
        }
        private void LoadContentForBombardment()
        {
            Texture2D bombTexture = Game.Content.Load<Texture2D>(@"Textures\ParticleColors");
            explosionEffect = Game.Content.Load<Effect>(@"effects\shader");
            Texture2D smokeTexture = Game.Content.Load<Texture2D>(@"Textures\smoke");

            Model BombardmentModel = Game.Content.Load<Model>(@"Models\ammo");
            bombard = new Bombard(BombardmentModel, terrain, bombTexture, camera, hud, milliseconds, explosionEffect, smokeTexture, audio);

            collisionBillboard = new CollisionBillboard(GraphicsDevice, Game.Content,
                       Game.Content.Load<Texture2D>(@"Textures\smoke"), new Vector2(50), bombard.collisionPosition);

            fauxAstroid = new FauxAstroid(GraphicsDevice, Game.Content,
                      Game.Content.Load<Texture2D>(@"Textures\fauxAstroid"), new Vector2(10), fauxPosition);
        }