Beispiel #1
0
        public void DrawStatsBar(GameTime gameTime)
        {
            if (showHealthStatus)
            {
                tankSprite.Draw(gameTime);

                _healthBar.Draw(_spriteBatch, gameTime);

                powerupRectangle.Draw(gameTime);
                if (powerUpInSlot != null)
                {
                    powerUpInSlot.Draw(gameTime);
                    if (_powerupTimer > 0)
                    {
                        _timerText.text = (Math.Round(_powerupTimer / 1000, 0)).ToString();
                        _timerText.Draw(gameTime);
                    }
                }
            }
        }