Exemplo n.º 1
0
 public void Damage()
 {
     context.PowerState = context.GetSmallMarioState();
     context.SetCurrentState(MarioState.Small);
     context.WidthHeight = new Microsoft.Xna.Framework.Vector2(MarioSpriteFactory.SMALL_MARIO_WIDTH, MarioSpriteFactory.SMALL_MARIO_HEIGHT);
     context.GrowDown();
     context.PowerState.Transition();
 }
Exemplo n.º 2
0
 public void ChangeToSmallMario()
 {
     context.PowerState = context.GetSmallMarioState();
     context.SetCurrentState(MarioState.Small);
     context.PowerState.Transition();
 }