Пример #1
0
        public static BulletSimple NewColor(Vector2 position, Vector2 velocity, int color)
        {
            var bullet = new BulletSimple(position, velocity, 16f, BlushieBoss.BulletColorTextures[color]);

            bullet.Damage = 0.075f;
            return(bullet);
        }
Пример #2
0
 public override void Update()
 {
     if (this.Position.Y >= this.Threshold)
     {
         this.Timer--;
         if (this.ShouldRemove())
         {
             for (int k = 0; k < 4; k++)
             {
                 float  rot    = MathHelper.TwoPi * (k + 0.5f) / 4f;
                 Bullet bullet = BulletSimple.NewDragon(this.Position, this.Speed * rot.ToRotationVector2());
                 BlushieBoss.AddBullet(bullet, this.Damage);
             }
         }
     }
     else
     {
         this.Position.Y += this.Speed;
     }
 }