Esempio n. 1
0
        internal void Update(KeyboardState keyboard)
        {
            _Input.HandleInput(keyboard);

            if (_CurrentGameMode != GameMode.Paused)
            {
                if (_CurrentGameMode == GameMode.InGame)
                {
                    if (_NpcCaveman._Health <= 0)
                    {
                        _GameWorld.Remove(_NpcCaveman._CaveManBody);
                    }

                    foreach (var movingSaw in _Saws)
                    {
                        movingSaw.Update();
                    }

                    _PhysicsController.ApplyForces(_GameWorld);
                    _PhysicsController.ApplyVelocity(_GameWorld);
                    _PhysicsController.ResolveCollisions(_GameWorld);
                    _NpcController.Update();
                }
            }
        }