diff --git a/projects/build-pong-with-pygame/main.py b/projects/build-pong-with-pygame/main.py index 3f33917f..da6c5b7d 100644 --- a/projects/build-pong-with-pygame/main.py +++ b/projects/build-pong-with-pygame/main.py @@ -164,7 +164,7 @@ def main(): # do the same thing with the bottom if ball_rect.bottom > SCREEN_HEIGHT - ball_rect.height: ball_accel_y *= -1 - ball_rect.top = SCREEN_HEIGHT - ball_rect.heigh + ball_rect.top = SCREEN_HEIGHT - ball_rect.height # if the ball goes out of bounds, end the game if ball_rect.left <= 0 or ball_rect.left >= SCREEN_WIDTH: