Ejemplo n.º 1
0
        protected override void Draw(GameTime gameTime)
        {
            UiSystem.DrawEarly(gameTime, _spriteBatch);

            titleUi.DrawEarly(gameTime, _spriteBatch);

            GraphicsDevice.Clear(Color.Transparent);

            UiSystem.Draw(gameTime, _spriteBatch);

            titleUi.Draw(gameTime, _spriteBatch);

            base.Draw(gameTime);
        }
Ejemplo n.º 2
0
        protected override void Draw(GameTime gameTime)
        {
            UiSystem.DrawEarly(gameTime, _spriteBatch);

            GraphicsDevice.Clear(Color.Transparent);

            _spriteBatch.Begin();

            background.Draw(_spriteBatch, GraphicsDevice);

            Communicator.newPlayerMutex.WaitOne();
            foreach (Sprite sprite in sprites)
            {
                sprite.Draw(_spriteBatch, GraphicsDevice);
            }
            Communicator.newPlayerMutex.ReleaseMutex();

            _spriteBatch.End();

            UiSystem.Draw(gameTime, _spriteBatch);

            base.Draw(gameTime);
        }