We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7c1ccc + c7f09cf commit 0f7fc7bCopy full SHA for 0f7fc7b
projects/build-pong-with-pygame/main.py
@@ -164,7 +164,7 @@ def main():
164
# do the same thing with the bottom
165
if ball_rect.bottom > SCREEN_HEIGHT - ball_rect.height:
166
ball_accel_y *= -1
167
- ball_rect.top = SCREEN_HEIGHT - ball_rect.heigh
+ ball_rect.top = SCREEN_HEIGHT - ball_rect.height
168
169
# if the ball goes out of bounds, end the game
170
if ball_rect.left <= 0 or ball_rect.left >= SCREEN_WIDTH:
0 commit comments