From 704cdbd845e8ae512fa1ebe534c23d65ab4e063c Mon Sep 17 00:00:00 2001 From: Ayush Bhomia <159886655+ayushh0406@users.noreply.github.com> Date: Sat, 15 Feb 2025 12:52:30 +0530 Subject: [PATCH] Update Ball.py --- PingPong/Ball.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PingPong/Ball.py b/PingPong/Ball.py index ec1a4a6768f..73961fc07f2 100644 --- a/PingPong/Ball.py +++ b/PingPong/Ball.py @@ -21,6 +21,7 @@ def drawBall(self): def doHorizontalFlip(self): self.vel[0] *= -1 + print("Github") def doVerticalFlip(self): @@ -55,4 +56,4 @@ def checkSlabCollision(self, slabPos): # slab pos = [xmin, ymin, xmax, ymax] if self.pos[0] < slabPos[0] or self.pos[0] > slabPos[2]: self.vel[0] *= -1 if self.pos[1] < slabPos[1] or self.pos[1] > slabPos[3]: - self.vel[1] *= -1 \ No newline at end of file + self.vel[1] *= -1