public SmallExplosionAnimation()
 {
     active = false;
     coolDown = 2.5f;
     explosion = new ExplosionParticleSystem(1);
     explosionSmoke = new ExplosionSmokeParticleSystem(1);
     explosion.Initialize();
     explosion.LoadContent();
     explosionSmoke.Initialize();
     explosionSmoke.LoadContent();
     soundEffect = AeroGame.ContentManager.Load<SoundEffect>("Sounds\\explosion");
 }
Exemple #2
0
 public Missle(bool friendly)
     : base()
 {
     if (AeroGame.lagTest)
         texture = AeroGame.LoadTextureStream("Particle16");
     else
         texture = AeroGame.ContentManager.Load<Texture2D>("Textures\\Particle16");
     textureData = new Color[texture.Width * texture.Height];
     texture.GetData(textureData);
     position = new Vector2();
     velocity = new Vector2(0, 300.0f);///////////
     health = 1;
     alive = false;
     exploding = false;
     this.friendly = friendly;
     explosionAnimation = new SmallExplosionAnimation();
     smoke = new ExplosionSmokeParticleSystem(1);
     smoke.Initialize();
     smoke.LoadContent();
     speed = 300;
 }