Esempio n. 1
0
    public static void UpdateMainLoop()
    {
        CoreGameControl.ManageControls();
        CoreConnector.CoreGameControl.SetWorldSidePositionToMatchPlayer();

        CoreConnector.Player.ManageGamePlay();
        CoreConnector.Levels.UpdateLoop();
    }
Esempio n. 2
0
    public static void LateUpdateMainLoop()
    {
        var lastPos = CoreConnector.Player.GetCurrentPosition();

        // this is where the tunnel effect will go, constantly animating
        // rotate the camera down
        CoreConnector.CameraControl.AngleCameraForLevelComplete();
        // now move the player around
        CoreGameControl.ManageControls();

        var pos = CoreConnector.GameInput.GetShipPosition();

        CoreConnector.Player.MoveToTargetPosition(pos);
        CoreConnector.GameInput.PositionShipWithDisplayOffset();

        // add rotation to the players model
        CoreConnector.GameInput.differenceInMovement = lastPos - pos;

        CoreConnector.Player.ManageAndDisplayPlayerRotation();
    }