public void Mushroom() { context.PowerState = context.GetSuperMarioState(); context.SetCurrentState(MarioState.Super); context.WidthHeight = new Microsoft.Xna.Framework.Vector2(MarioSpriteFactory.BIG_MARIO_WIDTH, MarioSpriteFactory.BIG_MARIO_HEIGHT); context.GrowUp(); context.PowerState.Transition(); }
public void ChangeToSuperMario() { context.PowerState = context.GetSuperMarioState(); context.SetCurrentState(MarioState.Super); context.WidthHeight = new Vector2(MarioSpriteFactory.BIG_MARIO_WIDTH, MarioSpriteFactory.BIG_MARIO_HEIGHT); context.GrowUp(); context.PowerState.Transition(); }
public void Damage() { context.PowerState = context.GetSuperMarioState(); context.SetCurrentState(MarioState.Super); context.PowerState.Transition(); }