Example #1
0
        public override void DrawAbove(GameContext context)
        {
            XnaGraphics xna = new XnaGraphics(context);

            xna.DrawStringLeft(8, 8, "FPS: " + context.FPS, "Arial");

            // Draw UI.
            xna.DrawSprite(context.Camera.Width / 2 - xna.SpriteWidth("ui.frame") / 2,
                           context.Camera.Height - xna.SpriteHeight("ui.frame"),
                           "ui.frame");

            // Draw debug information.
            DebugTracker.Draw(context, this);
        }