Example #1
0
        //double timer;
        protected override void Update(GameTime gameTime)
        {
            //timer += gameTime.ElapsedGameTime.TotalSeconds;
            //float updateTime = 1f / 60;

            //while (timer >= updateTime)
            //{
            try
            {
                LOG.Clear();
                Camera.Update();
                GameLoop.Update(gameTime.ElapsedGameTime.Milliseconds * 0.05f);
            }
            catch (System.Exception ex)
            {
            }

            // timer -= updateTime;
            //}

            base.Update(gameTime);
        }