protected override void Initialize() { width = GraphicsDevice.Viewport.Width; height = GraphicsDevice.Viewport.Height; GameContainer gc = new GameContainer(GraphicsDevice, null); phaseManager = new PhaseManager(new GamePhase(gc)); gameContent = new RenderTarget2D(GraphicsDevice, width, height); render = new Rectangle(0, 0, width, height); recorder = new Recorder(); FontManager.Initialize(Content); Control.Initialize(width, height); updateContainer = new UpdateContainer(); debugKeyboardManager = new KeyboardManager(); counter = new FPSCounter(this); DebugRenderer.AddDebugObjectScreen(new DebugFPS(counter)); GameConsole.Init(); consoleControl = new ConsoleControl(null); StdConsoleCommands.Init(); Parser p = new Parser(); var res5 = p.Parse(@".\Content\stdCommands.cmds", typeof(StdConsoleCommands)); var res6 = p.Parse(@".\Content\commands.cmds", typeof(ConsoleCommands)); GameConsole.Add(res5); GameConsole.Add(res6); StdConsoleCommands.ExitCalled += () => Exit(); StdConsoleCommands.ClassTree.Root = new ClassTreeItem(this, "game1"); base.Initialize(); }