mirror of https://github.com/kivy/kivy.git
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:
parent
a921b58baa
commit
ab79f681f9
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue