Skip to content

Commit 704cdbd

Browse files
authoredFeb 15, 2025
Update Ball.py
1 parent cd813a5 commit 704cdbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎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)
Please sign in to comment.