Ejemplo n.º 1
0
        void CustomActivity(bool firstTimeCalled)
        {
            ButtonChecker();

            GumRuntimes.TextRuntime pausetext = GameScreenGum.GetGraphicalUiElementByName("TextInstance") as GumRuntimes.TextRuntime;
            pausetext.Text = Passonclass.credits.ToString();
            if (Passonclass.credits < 0)
            {
                FlatRedBallServices.Game.Exit();
            }
        }
Ejemplo n.º 2
0
        void CustomInitialize()
        {
            InitializeCamera();
            InitializeUI();
            InitializeCollisionsRelations();
            InitializeInstances();
            InitializeEvents();
            ControlMethod = BoatControls;



            Camera.Main.Tween(SetOrthogonalHeight,
                              from: Camera.Main.OrthogonalHeight * 1.25f,
                              to: Camera.Main.OrthogonalHeight,
                              during: 1,// seconds
                              interpolation: FlatRedBall.Glue.StateInterpolation.InterpolationType.Quadratic,
                              easing: FlatRedBall.Glue.StateInterpolation.Easing.InOut
                              );

            GameScreenGum.MoveToLayer(UIBoatLayerGum);


            SkeletonFactory.CreateNew(250, -250);
        }