コード例 #1
0
 public SpriteFeedback(string aSprite, Vector2 aPosition, DoneFunction aDoneFunction, Betweenxt aAlphaTween = null, Betweenxt aPositionTween = null)
 {
     myAlphaTween    = aAlphaTween;
     myPositionTween = aPositionTween;
     myPosition      = aPosition;
     mySprite        = new Sprite(aSprite);
     myColor         = Color.White;
     myDoneChecker   = aDoneFunction;
 }
コード例 #2
0
        public ChainComboFeedback(string aPrefix, int aChainNumber, Vector2 aPosition)
        {
            myPosition       = aPosition;
            myText           = aPrefix + aChainNumber.ToString();
            myBackdropSprite = new Sprite("chainBackdrop");
            myFont           = ContentManagerInstance.Content.Load <SpriteFont>("raditascartoon");
            myBackdropColor  = GetColorFromChain(aChainNumber - 2);

            myAlphaTween    = new Betweenxt(Betweenxt.Lerp, 255, 0, 0, 60);
            myPositionTween = new Betweenxt(Betweenxt.Lerp, aPosition.Y, aPosition.Y - 60, 0, 60);
        }
コード例 #3
0
 public override void StartTheSwitchingCalculation(float aSwitchTime, ESwitchDirection aSwitchDirection)
 {
     myGroovyDanceMoves = new Betweenxt(Betweenxt.EaseOutQuadratic, GetTileSize() * (aSwitchDirection == ESwitchDirection.ToTheLeft ? -1 : 1), 0.0f, 0.0f, aSwitchTime);
     myDancingDirection = aSwitchDirection;
     myDanceOffset      = myGroovyDanceMoves.GetValue();
 }