You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ball moves a lot faster diagonally than orthogonally.
The ball_x_delta and ball_y_delta are both set to speed on game start. This means the actual distance covered per frame is sqrt(2) * speed.
When the ball hits a paddle, the ball delta perpendicular to the paddle is set to +/- speed. The ball delta parallel to the paddle is set to a value that only depends on where along the paddle the ball hit.
So after the first hit with the paddle, one component is always equal to speed and the other is unrelated to speed entirely.
This makes the movement erratic and unintuitive. Maybe should be a hard mode?
The text was updated successfully, but these errors were encountered:
The ball moves a lot faster diagonally than orthogonally.
The
ball_x_delta
andball_y_delta
are both set tospeed
on game start. This means the actual distance covered per frame issqrt(2) * speed
.When the ball hits a paddle, the ball delta perpendicular to the paddle is set to +/- speed. The ball delta parallel to the paddle is set to a value that only depends on where along the paddle the ball hit.
So after the first hit with the paddle, one component is always equal to
speed
and the other is unrelated to speed entirely.This makes the movement erratic and unintuitive. Maybe should be a hard mode?
The text was updated successfully, but these errors were encountered: