diff --git a/projects/build-pong-with-pygame/main.py b/projects/build-pong-with-pygame/main.py index 3f33917f..93ededb4 100644 --- a/projects/build-pong-with-pygame/main.py +++ b/projects/build-pong-with-pygame/main.py @@ -87,7 +87,6 @@ def main(): if event.key == pygame.K_SPACE: started = True - continue ''' get the time elapse between now and the last frame @@ -164,7 +163,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: