/// <summary> /// Creates a new Kyoob game. /// </summary> private Game() { // handle when this game exits Exiting += OnGameExit; // create graphics device manager _graphics = new GraphicsDeviceManager( this ); // set content directory Content.RootDirectory = "content"; // load settings Settings = new GameSettings( this ); Settings.Load( SettingsFile ); // add our frame counter component _frameCounter = new FrameCounter( this ); Components.Add( _frameCounter ); }
/// <summary> /// Creates a new Kyoob game. /// </summary> private Game() { // handle when this game exits Exiting += OnGameExit; // create graphics device manager _graphics = new GraphicsDeviceManager(this); // set content directory Content.RootDirectory = "content"; // load settings Settings = new GameSettings(this); Settings.Load(SettingsFile); // add our frame counter component _frameCounter = new FrameCounter(this); Components.Add(_frameCounter); }