Exemplo n.º 1
0
        /// <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 );
        }
Exemplo n.º 2
0
        /// <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);
        }