Example #1
0
 public void Reset()
 {
     RigidBody.CollisionLayerMask = CollisionLayer.All;
     RigidBody.Velocity           = Vector2.Zero;
     JumpHoldCount          = 0;
     TransitionToBigCount   = Constants.MARIO_TRANSITION_COUNT_MAX;
     TransitionToSmallCount = Constants.MARIO_TRANSITION_COUNT_MAX;
     State = new MarioState(this);
 }
Example #2
0
 public MarioStateSmall(MarioState state) : base(state)
 {
     state.mario.Size = new Point(Constants.SMALL_MARIO_WIDTH, Constants.SMALL_MARIO_HEIGHT);
 }
Example #3
0
 public MarioStateDead(MarioState state) : base(state)
 {
     state.mario.Size = new Point(Constants.DEAD_MARIO_WIDTH, Constants.DEAD_MARIO_HEIGHT);
     state.mario.RigidBody.CollisionLayerMask = CollisionLayer.None;
 }
Example #4
0
 public MarioStateFire(MarioState state) : base(state)
 {
     state.mario.Size = new Point(Constants.FIRE_MARIO_WIDTH, Constants.FIRE_MARIO_HEIGHT);
 }
Example #5
0
 public MarioStateBig(MarioState state) : base(state)
 {
     state.mario.Size = new Point(Constants.BIG_MARIO_WIDTH, Constants.BIG_MARIO_HEIGHT);
 }