Esempio n. 1
0
        public override void Draw(GameTime gameTime)
        {
            SpriteBatch sBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));

            sBatch.Draw(fundo, new Rectangle(0, 0, jogo.Window.ClientBounds.Width, jogo.Window.ClientBounds.Height), Color.White);
            sBatch.DrawString(fonte, "", new Vector2(0, 0), Color.White);
            btnIniciarEnredo.Desenhar(sBatch);

            base.Draw(gameTime);
        }
Esempio n. 2
0
        public override void Draw(GameTime gameTime)
        {
            SpriteBatch sBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));

            sBatch.Draw(fundo, new Rectangle(0, 0, jogo.Window.ClientBounds.Width, jogo.Window.ClientBounds.Height), Color.White);
            sBatch.DrawString(fonte, "Tela enredo", new Vector2(0, 0), Color.White);
            Vector2 novaPos = new Vector2(posInicialTexto.X, posInicialTexto.Y);

            //escrever texto
            foreach (string linhaTexto in listaTextos)
            {
                sBatch.DrawString(fonte, linhaTexto, novaPos, cor);
                novaPos = new Vector2(novaPos.X, novaPos.Y + 30);
                btnVoltar.Desenhar(sBatch);
            }
            btnAvancar.Desenhar(sBatch);
            base.Draw(gameTime);
        }