Esempio n. 1
0
        /// <summary>
        /// 立绘震动
        /// </summary>
        /// <param name="depth">震动对象</param>
        /// <param name="v">震动量</param>
        /// <param name="speed">每秒震动次数</param>
        /// <param name="time">持续时间</param>
        public EffectPiece SpriteVibration(int depth, float v = 10f, int freq = 100, float time = 0.5f)
        {
            Queue <NewImageEffect> effects = new Queue <NewImageEffect>();

            effects.Enqueue(NewEffectBuilder.SpriteShakeByDepth(depth, v, freq, time));
            return(new EffectPiece(id++, effects));
        }