Ejemplo n.º 1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     EnemyShotManager.Draw(spriteBatch);
     foreach (Enemy enemy in Enemies)
     {
         enemy.Draw(spriteBatch);
     }
 }
 public void Draw(SpriteBatch spriteBatch)
 {
     PlayerShotManager.Draw(spriteBatch);
     if (!Destroyed)
     {
         playerSprite.Draw(spriteBatch);
     }
 }
Ejemplo n.º 3
0
        public void Draw(SpriteBatch spriteBatch)
        {
            PlayerShotManager.Draw(spriteBatch);


            if (!Destroyed)
            {
                //EffectManager.Effect("ShieldsUp").Trigger(playerSprite.Center + new Vector2(8, 0));
                EffectManager.Effect("ShipSmokeTrail").Trigger(playerSprite.Center + new Vector2(8, 28));
                playerSprite.Draw(spriteBatch);
            }
        }
Ejemplo n.º 4
0
        public void Draw(SpriteBatch spriteBatch)
        {
            PlayerShotManager.Draw(spriteBatch);
            if (SheildVisible)
            {
                Sheild.Draw(spriteBatch);
                Sheildbar.Draw(spriteBatch);
                if (rand.Next(0, 50) == 1)
                {
                    EffectManager.Effect("ShieldBounce").Trigger(playerSprite.Center);
                }
                EffectManager.Effect("ShieldsUp").Trigger(playerSprite.Center);
            }

            SheildPowerUP.Draw(spriteBatch);
            if (!Destroyed)
            {
                playerSprite.Draw(spriteBatch);
            }
        }