Skip to content

Commit cb976b0

Browse files
Merge pull request #2524 from ayushh0406/patch-3
Ball.py
2 parents be554e6 + 704cdbd commit cb976b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: PingPong/Ball.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def drawBall(self):
2121
def doHorizontalFlip(self):
2222

2323
self.vel[0] *= -1
24+
print("Github")
2425

2526

2627
def doVerticalFlip(self):
@@ -55,4 +56,4 @@ def checkSlabCollision(self, slabPos): # slab pos = [xmin, ymin, xmax, ymax]
5556
if self.pos[0] < slabPos[0] or self.pos[0] > slabPos[2]:
5657
self.vel[0] *= -1
5758
if self.pos[1] < slabPos[1] or self.pos[1] > slabPos[3]:
58-
self.vel[1] *= -1
59+
self.vel[1] *= -1

0 commit comments

Comments
 (0)