Exemplo n.º 1
0
        public MoteurParticule(YellokillerGame game, SpriteBatch spriteBatch, Carte carte, Heros heros1, Heros heros2, List<Statue> _statue)
        {
            this.game = game;
            this.spriteBatch = spriteBatch;

            hadoken_heros1 = new ExplosionParticleSystem(game, 1, heros1, carte, 50);
            game.Components.Add(hadoken_heros1);

            ball1 = new BallParticleSystem(game, 1, heros1, carte);
            game.Components.Add(ball1);

            foreach (Statue statue in _statue)
            {
                explosion_statue = new Statue_Explosion(game, 20, carte, statue, statue.Distance_Statue_Mur(carte));
                game.Components.Add(explosion_statue);
            }

            fume_hadoken = new ExplosionSmokeParticleSystem(game, 2);
            game.Components.Add(fume_hadoken);

            fumigene1 = new Fumigene(game, 9, heros1, carte);
            game.Components.Add(fumigene1);

            fume = new SmokePlumeParticleSystem(game, 9);
            game.Components.Add(fume);

            try
            {
                hadoken_heros2 = new ExplosionParticleSystem(game, 1, heros2, carte, 50);
                game.Components.Add(hadoken_heros2);
                ball2 = new BallParticleSystem(game, 1, heros2, carte);
                fumigene2 = new Fumigene(game, 9, heros2, carte);
                game.Components.Add(fumigene2);
                game.Components.Add(ball2);
            }
            catch (NullReferenceException)
            { }
        }
Exemplo n.º 2
0
        // Sert qu'aux rectangles
        public override void LoadContent()
        {
            if (content == null)
                content = new ContentManager(ScreenManager.Game.Services, "Content");
            blankTexture = content.Load<Texture2D>("blank");

            fume = new SmokePlumeParticleSystem(game, 9);
            game.Components.Add(fume);
        }