public void Draw(SpriteBatch spriteBatch)
        {
            Game1.Self.GraphicsDevice.SetRenderTarget(backRender);
            Game1.Self.GraphicsDevice.Clear(Color.Black);

            spriteBatch.Begin();
            fundoGame.Draw(spriteBatch);
            heart.Draw(spriteBatch);
            spriteBatch.End();

            if (decisaoDesenhada)
            {
                spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive);
                spriteBatch.Draw(Game1.Self.Content.Load <Texture2D>("filtro vermelho"), Vector2.Zero, Color.White * 0.5f);
                spriteBatch.End();

                spriteBatch.Begin();
                avisoFollow.Draw(spriteBatch);
                spriteBatch.DrawString(fontDecisao, caixaTexto.WrapText(fontDecisao, Save.textoDecisao, 700), new Vector2(130, 330), new Color(131, 255, 207) * 0.7f);
                spriteBatch.End();
            }

            else
            {
                spriteBatch.Begin();
                avisoReading.Draw(spriteBatch);
                spriteBatch.End();
            }

            Game1.Self.GraphicsDevice.SetRenderTarget(null);
            Game1.Self.GraphicsDevice.Clear(Color.Black);

            line.Draw(spriteBatch, backRender);
            caixaTexto.Draw(spriteBatch);
        }
Пример #2
0
        public override void draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();

            fundoGameOver.Draw(spriteBatch);

            if (underlineVisible == true)
            {
                tracinho.Draw(spriteBatch);
            }

            spriteBatch.End();
        }
        public override void draw(SpriteBatch spriteBatch)
        {
            Game1.Self.GraphicsDevice.SetRenderTarget(backRender);
            Game1.Self.GraphicsDevice.Clear(Color.Black);

            spriteBatch.Begin();

            fundoControl.Draw(spriteBatch);
            heart.Draw(spriteBatch);
            spriteBatch.End();

            Game1.Self.GraphicsDevice.SetRenderTarget(null);
            Game1.Self.GraphicsDevice.Clear(Color.Black);

            line.Draw(spriteBatch, backRender);
        }