Ejemplo n.º 1
0
        //Dirty Hacks
        public override void Cancel()
        {
            base.Cancel();
            DebugText.Update(Game.UpdateTime);

           
        }
Ejemplo n.º 2
0
        public static void Update(GameTime gameTime)
        {
            for (int i = 0; i < gameSubSystems.Count; i++)
            {
                gameSubSystems[i].Update(gameTime);
            }

            if (CursorVisible)
            {
                if (!SystemCore.Game.IsMouseVisible)
                {
                    SystemCore.Game.IsMouseVisible = true;
                }
            }
            else
            {
                if (SystemCore.Game.IsMouseVisible)
                {
                    SystemCore.Game.IsMouseVisible = false;
                }
            }


            if (SystemCore.EscapeQuitsGame)
            {
                if (SystemCore.Input.KeyPress(Keys.Escape))
                {
                    SystemCore.Game.Exit();
                }
            }

            if (!PhysicsOnBackgroundThread)
            {
                PhysicsSimulation.Update((float)gameTime.ElapsedGameTime.TotalSeconds);
            }

            DebugText.Update(gameTime);

            EventManager.Update(gameTime.ElapsedGameTime);
        }