예제 #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;
     }
 }