Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/build-pong-with-pygame/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down