Fix minor typo in pong tutorial code comments (#7927)

While reading through the pong tutorial code, I noticed that `of` should
have been `off` in code comments.  This commit fixes the issue.
This commit is contained in:
Paul Cochrane 2022-07-28 16:07:29 +02:00 committed by GitHub
parent a921b58baa
commit ab79f681f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class PongGame(Widget):
def update(self, dt):
self.ball.move()
# bounce of paddles
# bounce off paddles
self.player1.bounce_ball(self.ball)
self.player2.bounce_ball(self.ball)
@ -48,7 +48,7 @@ class PongGame(Widget):
if (self.ball.y < self.y) or (self.ball.top > self.top):
self.ball.velocity_y *= -1
# went of to a side to score point?
# went off to a side to score point?
if self.ball.x < self.x:
self.player2.score += 1
self.serve_ball(vel=(4, 0))