AncientChinaPuzzle4.AncientChinaPuzzle4.Draw C# (CSharp) Method

Draw() protected method

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.White);

            TimeSpan time = TimeSpan.FromSeconds(_timer);
            spriteBatch.Begin();
            // TODO: Add your drawing code here
            spriteBatch.Draw(backgroundDoorsTexture, background, Color.White);
            spriteBatch.DrawString(font, string.Format("{0}",(int)_timer), timerLocation, Color.Red);
            for (int i = 0; i < 8; i++)
            {
                arrowVector.X = i*100;
                switch (copySequence[i])
                {
                    case 0:
                        spriteBatch.Draw(leftArrowTexture, arrowVector, Color.White);
                        break;
                    case 1:
                        spriteBatch.Draw(middleArrowTexture, arrowVector, Color.White);
                        break;
                    case 2:
                        spriteBatch.Draw(rightArrowTexture, arrowVector, Color.White);
                        break;
                }
            }

            spriteBatch.End();

            base.Draw(gameTime);
        }