title: Need better way of making the ball angle in pong game
body: <p>I'm making a pong clone to practice my coding, and I've become stuck on making the ball be able to change angle when hit by the paddle.</p>
  
  <p>My current implementation has a deltaX and deltaY for the ball, which moves with the game loop to move the ball. The way I have done it is that if you hit the ball while the paddle is moving, the deltaY is increased or decreased depending on the direction of the paddle, but this does not feel natural at all for the game. </p>
  
  <p>Does anyone know a better way of doing this?</p>