Skip to content

Commit 0f7fc7b

Browse files
authored
Merge pull request #168 from copycode69/newlike
typo error
2 parents d7c1ccc + c7f09cf commit 0f7fc7b

File tree

1 file changed

+1
-1
lines changed
  • projects/build-pong-with-pygame

1 file changed

+1
-1
lines changed

projects/build-pong-with-pygame/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def main():
164164
# do the same thing with the bottom
165165
if ball_rect.bottom > SCREEN_HEIGHT - ball_rect.height:
166166
ball_accel_y *= -1
167-
ball_rect.top = SCREEN_HEIGHT - ball_rect.heigh
167+
ball_rect.top = SCREEN_HEIGHT - ball_rect.height
168168

169169
# if the ball goes out of bounds, end the game
170170
if ball_rect.left <= 0 or ball_rect.left >= SCREEN_WIDTH:

0 commit comments

Comments
 (0)