Exemple #1
0
 public void Wobble()
 {
     Zshake.ShakeInfo info = new Zshake.ShakeInfo();
     info.xSize     = 0.0f;
     info.ySize     = 1.8f;
     info.xSpeed    = 0.0f;
     info.ySpeed    = 0.0f;
     info.xPosition = 0.0f;
     info.yPosition = 0.0f;
     shake.Setup(info);
     shake.Reset();
     shake.StartP1(Utilities.GetRandBetweenP1(0.65f, 1.2f), 0.8f);
 }
        public void Bump()
        {
            if (shake == null)
            {
                shake = new Zshake();
            }

            Zshake.ShakeInfo info = new Zshake.ShakeInfo();
            info.xSize     = 0.0f;
            info.ySize     = 2.3f;
            info.xSpeed    = 0.0f;
            info.ySpeed    = 0.0f;
            info.xPosition = 0.0f;
            info.yPosition = 0.0f;
            shake.Setup(info);
            shake.Reset();
            shake.StartP1(1.2f, 0.75f);
        }