예제 #1
0
 public void AddExplosionParticles(Vector2 pos)
 {
     for (int i = 0; i < 30; i++)
     {
         //Particle p = new Particle(pos, ParticleType.Circle);
         //particles.Add(p);
     }
     for (int i = 0; i < 30; i++)
     {
         ExplosionParticle p = new ExplosionParticle(pos, ParticleType.RedSmoke);
         particles.Add(p);
     }
     for (int i = 0; i < 80; i++)
     {
         ExplosionParticle p = new ExplosionParticle(pos, ParticleType.Smoke);
         particles.Add(p);
     }
 }
예제 #2
0
 public void WarpEffect(Player player)
 {
     for (int i = 0; i < 40; i++)
     {
         ExplosionParticle p = new ExplosionParticle(player.Position, ParticleType.BlueSmoke);
         toAddP.Add(p);
     }
 }