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.
1 parent a79053c commit 9591cb8Copy full SHA for 9591cb8
examples/event_handling/pipong.py
@@ -79,8 +79,9 @@ def update(self, pads):
79
self.vx *= 1.2 * pad.signx
80
self.vy *= 1.2 * pad.signy
81
fudge = .001
82
- # probably cleaner with something like...if not self.field.contains(self.x, self.y):
83
- if self.x < 0 + fudge:
+ # probably cleaner with something like...
+ #if not self.field.contains(self.x, self.y):
84
+ if self.x < fudge:
85
#print("player A loses")
86
pads[1].score += 1
87
self._reset(pads[0])
0 commit comments