示例#1
0
 public EasyGameComponent AddBall()
 {
     ball = AddComponent("ball");
     ball.EdgeFriction = 0;
     ball.Rotateable   = true;
     ball.BounceFactor = 1;
     ball.Static       = false;
     ball.SetPosition(200, 700);
     ball.IsBullet = true;
     ball.Nudge(.6f, -.6f);
     ball.MaxVelocity      = 2f;
     ball.ConstantVelocity = 10;
     return(ball);
 }
示例#2
0
 public void PlayerNudge()
 {
     ball.Nudge(0, -.1f);
 }