Exemple #1
0
        public void TakeDamageTransition(Peach peach)
        {
            var state = new StandardState(this);

            peach.PowerUpState = state;
            peach.SwitchToStandardSprite();
        }
Exemple #2
0
        public void StandardTransition(Peach peach)
        {
            var state = new StandardState(this);

            peach.PowerUpState = state;                      // Standard
            peach.Sprite.SwitchAnimation(Constants.ZERO, 6); // Idle anim
            peach.Sprite.SetFrame(Constants.ZERO);           // from start of anim
            peach.Sprite.LoopFrame = true;                   // loop anim
        }
Exemple #3
0
        public void DeadTransition(Peach peach)
        {
            sound = peach.Content.Load <SoundEffect>("Sound Effects/Peach Dies");
            sound.Play();
            var state = new StandardState(this);

            peach.PowerUpState = state;
            peach.SwitchToStandardSprite();
            peach.Sprite.SwitchAnimation(5, 4);
        }
Exemple #4
0
        public void StandardTransition(Peach peach)
        {
            var state = new StandardState(this);

            peach.PowerUpState = state;
            peach.SwitchToStandardSprite();
            if (peach.ActionState is CrouchingState)
            {
                peach.ActionState = new IdleState(peach);
                peach.Sprite      = PeachSpriteFactory.Instance.FactoryMethod(peach);
            }
        }