Exemplo 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)
        {
            Time.gameTimeDraw = gameTime;

            GraphicsDevice.Clear(new Color(0.1f, 0.1f, 0.1f));

            spriteBatch.Begin(SpriteSortMode.BackToFront, samplerState: SamplerState.PointClamp);
            GameObject.DrawObjects(spriteBatch);
            UIObject.DrawUI(spriteBatch);
            spriteBatch.End();
            base.Draw(gameTime);
        }