Beispiel #1
0
        protected override void DrawCore(GameTime gameTime)
        {
            Context.GraphicsDevice.Clear(Color.Black);

            _batch.Begin();

            string text           = "Sphinx of black quartz, judge my vow.";
            float  x              = 100;
            float  y              = 20;
            float  alignmentWidth = 280;

            _font.DrawWrapped(_batch, text, x, Context.GraphicsDevice.Viewport.Height - y, alignmentWidth, HAlignment.Right);

            _batch.End();
        }