Example #1
0
 public EBossS1(AnimatedTexture spriteA, AnimatedTexture spriteD, Texture2D loadedBullet,
     int maxBullets, int scoreVal, float scale, Vector2 initialPosition, Vector2 initialVelocity,
     int mpattern, int fpattern, bool dropsFood, bool left)
     : base(spriteA, spriteD, loadedBullet, maxBullets, scale, initialPosition, mpattern, fpattern, dropsFood, left)
 {
     aliveTex = spriteA.myTexture;
     deadTex = spriteD.myTexture;
     bulletText = loadedBullet;
     scoreValue = scoreVal;
     velocity = initialVelocity;
     isLeft = left;
     health = 500;
     maxHealth = health;
     hasHealthBar = true;
     expBullets = new ExplodingBullet[9];
     for (int i = 0; i < expBullets.Length; i++)
         expBullets[i] = new ExplodingBullet(3, Math.PI/4, 3*Math.PI/4, -1, 400, 3, loadedBullet, scale);
     time = new fireTimer(new TimeSpan(0, 0, 0, 1, 500), Fire);
     time.Start();
     isBoss = true;
 }
Example #2
0
 public EBossS1(AnimatedTexture spriteA, AnimatedTexture spriteD, Texture2D loadedBullet,
                int maxBullets, int scoreVal, float scale, Vector2 initialPosition, Vector2 initialVelocity,
                int mpattern, int fpattern, bool dropsFood, bool left)
     : base(spriteA, spriteD, loadedBullet, maxBullets, scale, initialPosition, mpattern, fpattern, dropsFood, left)
 {
     aliveTex     = spriteA.myTexture;
     deadTex      = spriteD.myTexture;
     bulletText   = loadedBullet;
     scoreValue   = scoreVal;
     velocity     = initialVelocity;
     isLeft       = left;
     health       = 500;
     maxHealth    = health;
     hasHealthBar = true;
     expBullets   = new ExplodingBullet[9];
     for (int i = 0; i < expBullets.Length; i++)
     {
         expBullets[i] = new ExplodingBullet(3, Math.PI / 4, 3 * Math.PI / 4, -1, 400, 3, loadedBullet, scale);
     }
     time = new fireTimer(new TimeSpan(0, 0, 0, 1, 500), Fire);
     time.Start();
     isBoss = true;
 }