示例#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 );
        }
示例#2
0
文件: Game.cs 项目: s1ntropy/kyoob
        /// <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);
        }