Example #1
0
    static TestAnimations()
    {
        //Load the tackle animation
        string tackleText = System.IO.File.ReadAllText("moddable_data/tackle.txt");

        tackle = new SimpleAnimation(tackleText);

        BattleAnimationDex.AddEntry(new DexID("", 0), tackle);
    }
Example #2
0
    public float GenericMoveAnimation(DexID animID)
    {
        //TODO: Start one of the generic animations
        //Returns the animation's early finish length

        //TODO: Decide which animation to start based on animID
        SimpleAnimation anim = TestAnimations.tackle;

        anim = BattleAnimationDex.GetEntry(animID);

        //Start the animation
        animPlayer.PlayAnimation(anim);

        return(anim.earlyFinishLen);
    }