public override void onSet(Tom.FacingState facing)
 {
     if (tom.Superpower == Tom.SuperpowerState.Regrets)
     {
         tom.State = tom.JumpTryState;
     }
     base.onSet(facing);
     tom.Jump();
 }
示例#2
0
 public override void onSet(Tom.FacingState facingState)
 {
     base.onSet(facingState);
     tom.CharFix.Body.BodyType        = BodyType.Kinematic;
     tom.CharFix.Body.LinearVelocity  = Vector2.Zero;
     tom.CharFix.Body.AngularVelocity = 0;
     animationLeft.activeFrameNumber  = 0;
     animationRight.activeFrameNumber = 0;
     moves.push(new Move.Move(tom, new Vector2(0, -300), 3000));
 }
示例#3
0
 public virtual void onSet(Tom.FacingState facing)
 {
     if (facing == Tom.FacingState.Left)
     {
         animationLeft.stop();
         animationLeft.start();
     }
     else
     {
         animationRight.stop();
         animationRight.start();
     }
 }
示例#4
0
 public override void onSet(Tom.FacingState facingState)
 {
     base.onSet(facingState);
     tom.CharFix.Body.BodyType        = BodyType.Kinematic;
     tom.CharFix.Body.LinearVelocity  = Vector2.Zero;
     tom.CharFix.Body.AngularVelocity = 0;
     animationLeft.activeFrameNumber  = 0;
     animationRight.activeFrameNumber = 0;
     if (tom.Facing == Tom.FacingState.Right)
     {
         moves.push(new Move.Move(tom, new Vector2(110, 0), 500));
         moves.push(new Move.Move(tom, new Vector2(110, -145), 600));
     }
     else
     {
         moves.push(new Move.Move(tom, new Vector2(-110, 0), 500));
         moves.push(new Move.Move(tom, new Vector2(-110, -142), 600));
     }
 }
 public override void onSet(Tom.FacingState facing)
 {
     base.onSet(facing);
 }
 public override void onSet(Tom.FacingState facing)
 {
     base.onSet(facing);
     tom.CharFix.Friction = 3;
 }