Example #1
0
 private EntityData AddAnim(string name, AnimatorMode mode, float interval, params int[] frames)
 {
     if (Anim == null)
     {
         Anim = new AnimatorData("entities_16_16");
     }
     Anim.Add(name, mode, interval, frames);
     return(this);
 }
Example #2
0
        public void PushMov(Vector2 Speed, Vector2 SpeedInc, float RotationInc, int _Fdelay)
        {
            BalletDescriber B;

            B.FramesDelay = _Fdelay;
            B.RotationInc = RotationInc;
            B.SpeedInc    = SpeedInc;
            B.Speed       = Speed;
            Anim.Add(B);
        }
Example #3
0
    private void defineSequence(Anim anim, string name, string frames, int fps)
    {
        if (frames == null || frames == "")
        {
            frames = "0";
        }

        if (fps <= 0)
        {
            fps = 30;
        }

        anim.Add(name, frames, fps);
    }