Esempio n. 1
0
        protected override void Draw(GameTime time)
        {
            GraphicsDevice.Clear(new Color(51, 51, 51));
            render = new Rectangle(200, 0, GraphicsDevice.Viewport.Width - 200, GraphicsDevice.Viewport.Height - 80);
            if (!ConsoleCommands.FreezeGame)
            {
                GraphicsDevice.SetRenderTarget(gameContent);
                GraphicsDevice.Clear(Color.Black);
                phaseManager.Draw(renderer, time);
                GraphicsDevice.SetRenderTarget(null);
                render = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);
                recorder.AddRecordEntry(new RecordEntry(gameContent, time));
            }
            renderer.Begin();
            renderer.Draw(gameContent, render, Color.White);
            if (ConsoleCommands.FreezeGame && ConsoleCommands.PlayLoop)
            {
                recorder.Draw(renderer, time);
            }
            consoleControl.Draw(renderer);
            batch.End();

            TimeWatcher.ClearCurrent();

            base.Draw(time);
        }