示例#1
0
        /// <summary>
        /// Initializes the game.
        /// </summary>
        public static void Initialize()
        {
            _clock = new HighPrecisionClock();
              _timer = new FixedStepTimer(_clock);
              _timer.TimeChanged += Update;
              _timer.Idle += Idle;

              _clock.Start();
              _timer.Start();
        }
示例#2
0
 /// <summary>
 /// Initializes the game.
 /// </summary>
 private static void Initialize()
 {
     _clock = new HighPrecisionClock();
       _timer = new FixedStepTimer(_clock);
       _clock.Start();
       _timer.Start();
 }