Ejemplo n.º 1
0
        public virtual void DrawGauges(SpriteBatch spriteBatch)
        {
            //spriteBatch.Draw(HealthBar.HealthBarTexture, new Rectangle(HealthBar.HealthBarMargin,
            //            20, 425, 150), new Rectangle(0, 0, 425, 150), Color.White);

            //Draw the box around the health bar
            HealthBar.Draw(spriteBatch);
            SpecialBar.Draw(spriteBatch);
            //spriteBatch.Draw(HealthBar.HealthBarTexture, new Rectangle(HealthBar.HealthBarMargin,
            //            675, (int)(HealthBar.Width * ((double)CurrentSpecial / MaxSpecial)), 44), new Rectangle(0, 45, HealthBar.Width, 44), Color.Blue);

            //Draw the box around the health bar
            //spriteBatch.Draw(HealthBar.HealthBarTexture, new Rectangle(HealthBar.HealthBarMargin,
            //        675, HealthBar.Width, 44), new Rectangle(0, 0, HealthBar.Width, 44), Color.White);
        }
Ejemplo n.º 2
0
        public void DrawHUD(SpriteBatch spriteBatch)
        {
            HealthBar.Draw(spriteBatch);
            SpecialBar.Draw(spriteBatch);

            //float perc = ((100 / GrenadeTiming.Y) * GrenadeTiming.X) / 100;
            //int height = (int)(perc * Game1.GrenadeIcon.Height);
            //spriteBatch.Draw(Game1.GrenadeIcon,
            //    new Rectangle(40 + (480 * (int)PlayerIndex), 40 + 25 + 10 + (int)((1.0f - perc) * 24), 24, (int)(perc * 24)),
            //    new Rectangle(0, Game1.GrenadeIcon.Height - height, Game1.GrenadeIcon.Width, height), Color.White);

            //spriteBatch.Draw(Game1.GrenadeIcon, new Rectangle(40 + (480 * (int)PlayerIndex), 40+25+10, 24, 24), Color.White * 0.5f);

            //for (int i = 0; i < Deaths; i++)
            //{
            //    spriteBatch.Draw(SkullIcon, new Vector2(40 + (480 * (int)PlayerIndex) + (32*i), 40 + 25 + 10 + 24), Color.White);
            //}
        }