Esempio n. 1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);
            GlobalCamera.Begin();

            ScreenManager.Draw(gameTime, spriteBatch);

            if (Settings.DEBUG_CONTROLLERS && GameManager.Players != null && GameManager.Players[0] != null)
            {
                for (int x = 0; x < 4; x++)
                {
                    ControllerDisplayHelper.RENDER_CONTROLLER(spriteBatch, GameManager.Players[x].GamePad.BaseCurrent(), Settings.PlayerCAreas[x], GameManager.Players[x].PlayerColor);
                }
            }

            GlobalCamera.End();
            base.Draw(gameTime);
        }