示例#1
0
文件: Ball.cs 项目: thiecrow/Pong
 public void Launch()
 {
     if (Keyboard.GetState().IsKeyDown(Keys.Space) && attachedToPaddle != null)
     {
         velocity         = new Vector2(15, attachedToPaddle.GetVelocity().Y);
         attachedToPaddle = null;
     }
 }